scikit-learn-contrib / hiclass

A python library for hierarchical classification compatible with scikit-learn
BSD 3-Clause "New" or "Revised" License
114 stars 20 forks source link

issue using plot_lcppn_explainer.ipynb sample script #132

Open colton-vp opened 1 month ago

colton-vp commented 1 month ago

Describe the bug I have downloaded the plot_lcppn_explainer.ipynb notebook and am trying to run it locally. I am able to train and predict the classifier, but I get an error when defining the explainer.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://hiclass.readthedocs.io/en/latest/auto_examples/plot_lcppn_explainer.html and download thw plot_lcppn_explainer.ipynb notebook.
  2. Open the notebook and try to run the code. I split up the main cell and found the bug at the #Define Explainer portion of the script.
  3. See error

Expected behavior I expected to see the example plot that is shown on the download page.

Screenshots Screenshot 2024-09-27 at 1 47 10 PM

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

RishitJoshi97 commented 15 hours ago

hi i am facing same issue on same code above, my env is python 3.10.15 ,shap-0.46.0. please let me know if there's any fix to this.