Closed md598 closed 4 years ago
I'd presume you're using colab, as this means you have the wrong version of fastai. You need to install with --upgrade
. Also you need to install with interp
as the README states.
Using colab. Did upgrade fastai with !pip install fastai --upgrade and did !pip install fastinference[interp] per README, same issue. Any ideas?
Copy/pasted in a bunch of the code from this notebook and it worked! https://github.com/muellerzr/fastinference/blob/master/nbs/02_shap.interp.ipynb Hopefully that's insightful! Congrats on the new release! Got the book on order!
I didn't get an issue, did you make sure to restart your instance? (also updating the shap requirement, didn't realize I missed one) I did the following steps:
!pip install fastinference[interp] shap
!pip install fastai --upgrade
from fastinference.tabular import *
Also, I had nothing to do with Jeremy & Sylvain's book :)
It worked! Thank you!
Trying to install, use SHAP.
!pip install fastinference fastai -q, this works
from fastinference.tabular import * produces:
ModuleNotFoundError Traceback (most recent call last)