Skip to content

Commit

Permalink
Fix import order in shap.py
Browse files Browse the repository at this point in the history
  • Loading branch information
y0z committed Feb 5, 2024
1 parent f6f7ade commit 0523d62
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions optuna_integration/shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@


with try_import() as _imports:
from sklearn.ensemble import RandomForestRegressor

from shap import TreeExplainer

Check warning on line 21 in optuna_integration/shap.py

View workflow job for this annotation

GitHub Actions / reviewdog

[formatters] reported by reviewdog 🐶 Raw Output: optuna_integration/shap.py:21:- from shap import TreeExplainer
from sklearn.ensemble import RandomForestRegressor


Check warning on line 24 in optuna_integration/shap.py

View workflow job for this annotation

GitHub Actions / reviewdog

[formatters] reported by reviewdog 🐶 Raw Output: optuna_integration/shap.py:23:+ from shap import TreeExplainer optuna_integration/shap.py:24:+
@experimental_class("3.0.0")
Expand Down

0 comments on commit 0523d62

Please sign in to comment.