标签: shapley

Numba 需要 NumPy 1.20 或更低版本才能导入 shapley

我正在尝试导入形状。我遇到以下错误。我安装了较低版本的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)

python import shapley

26
推荐指数
4
解决办法
7万
查看次数

标签 统计

import ×1

python ×1

shapley ×1