我正在尝试导入形状。我遇到以下错误。我安装了较低版本的NumPy仍然问题没有解决。谢谢你!
import shap
ImportError Traceback (most recent call last)
/tmp/ipykernel_22681/948769371.py in <module>
----> 1 import shap
~/jupyter/environment/lib/python3.8/site-packages/shap/__init__.py in <module>
10 warnings.warn("As of version 0.29.0 shap only supports Python 3 (not 2)!")
11
---> 12 from ._explanation import Explanation, Cohorts
13
14 # explainers
~/jupyter/environment/lib/python3.8/site-packages/shap/_explanation.py in <module>
10 from slicer import Slicer, Alias, Obj
11 # from ._order import Order
---> 12 from .utils._general import OpChain
13
14 # slicer confuses pylint...
~/jupyter/environment/lib/python3.8/site-packages/shap/utils/__init__.py in <module>
----> 1 from ._clustering import hclust_ordering, …Run Code Online (Sandbox Code Playgroud)