muellerzr / fastinference

A collection of inference modules for fastai2
https://muellerzr.github.io/fastinference
Apache License 2.0
89 stars 16 forks source link

ImportError: The interp module is not installed #21

Closed DmitriyG228 closed 3 years ago

DmitriyG228 commented 4 years ago

Hi, I wanted to test SHAP with fastinference, but there is an import error. how to fix this? Thanks!

ImportError                               Traceback (most recent call last)
<ipython-input-7-d27f1c452f1a> in <module>
----> 1 from fastinference.tabular.shap.core import _prepare_data, _prepare_test_data, _predict
      2 import shap
      3 from fastai.tabular.all import *

~/anaconda3/envs/ab/lib/python3.7/site-packages/fastinference/tabular/__init__.py in <module>
      1 from ..soft_dependencies import SoftDependencies
      2 if not SoftDependencies.check()['interp']:
----> 3     raise ImportError("The interp module is not installed.")
      4 
      5 from .shap import *

ImportError: The interp module is not installed.
muellerzr commented 4 years ago

Ah, it seems the readme was not updated for whatever reason. It has been now. fastinference is a base module, so the interp module needs to be installed via: pip install fastinference[interp]