shap icon indicating copy to clipboard operation
shap copied to clipboard

BUG: shap-feedstock CI fails due to failed imports

Open CloseChoice opened this issue 1 year ago • 1 comments

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

CloseChoice avatar Aug 25 '24 18:08 CloseChoice

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.

CloseChoice avatar Aug 25 '24 18:08 CloseChoice