shap
shap copied to clipboard
BUG: shap-feedstock CI fails due to failed imports
Issue Description
Our conda build pipelines fail since a while (e.g. https://github.com/conda-forge/shap-feedstock/pull/85/checks).
Minimal Reproducible Example
see the logs of the attached pipeline
Traceback
No response
Expected Behavior
No response
Bug report checklist
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the latest release of shap.
- [X] I have confirmed this bug exists on the master branch of shap.
- [X] I'd be interested in making a PR to fix this bug
Installed Versions
v0.46.0
I executed that locally and found that the installed version of tensorflow somehow requires that we import things differently, e.g.
instead of
from tensorflow.keras.models import Model
we need to do
import tensorflow as tf
tf.keras.models.Model(...)
Will setup a branch and check whether the build works locally with this setup.