-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pin scikit-learn dependency for shap #1491
Conversation
Signed-off-by: Lee Yang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked that sickit-learn should be fine with python 3.9+
Is there any concern with the other dependencies I see on the package pypi page? matplotlib
is the library I see in the error of the DLI docker.
Scikit-learn plotting capabilities (i.e., functions start with plot_ and classes end with Display) require Matplotlib (>= 3.3.4). For running the examples Matplotlib >= 3.3.4 is required. A few examples require scikit-image >= 0.17.2, a few examples require pandas >= 1.1.5, some examples require seaborn >= 0.9.0 and plotly >= 5.14.0.
@@ -81,6 +81,7 @@ dependencies = [ | |||
"xgboost==2.1.3", | |||
# used for model interpretability. python [3.9, 3.12] | |||
"shap==0.46.0", | |||
"scikit-learn==1.5.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment that sickit-learn is required as dependency of shap?
Signed-off-by: Lee Yang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @leewyang
LGTME
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @leewyang. LGTME
This PR pins the
scikit-learn
dependency ofshap
to version 1.5.2, since the most recent 1.6.0 version (released on 12/9/2024) modified the behavior of theBaseEstimator.__sklearn_tags__
, which is causing this error when runningoptuna
hyperparameter search: