構築したモデルのSHAP値をみたいと思って、ローカルのJupyterでSHAPをPIPで入れて、importしようとした所、下記のエラーが出てしまいました。
AttributeError: module 'llvmlite.binding.ffi' has no attribute 'register_lock_callback'
意味が分からず、ネットで似た様な質問を見つけて
!pip show llvmlite
!pip show numba したところ、下記のように出ました。
Name: llvmlite
Version: 0.31.0
Summary: lightweight wrapper around basic LLVM functionality
Home-page: http://llvmlite.pydata.org
Author: Continuum Analytics, Inc.
Author-email: numba-users@continuum.io
License: BSD
Location: *個人名含むため省略*
Requires:
Required-by: pynndescent, numba
Name: numba
Version: 0.54.1
Summary: compiling Python code using LLVM
Home-page: https://numba.pydata.org
Author: Anaconda, Inc.
Author-email: numba-users@continuum.io
License: BSD
Location: *個人名含むため省略* アナコンダのパッケージのフォルダです
Requires: llvmlite, setuptools, numpy
Required-by: umap-learn, shap, pyod, pynndescent
お恥ずかしながら生かすことができず、環境を変えてみるかとGoogle coraboratelyで試した所、今度はmodelのロードができませんでした。
name 'load_model' is not defined
→同じコードを入れてもローカルでは呼び出せます。

回答1件
あなたの回答
tips
プレビュー