0

I wrote a code for SHAP on images. It was working for two days, then it brought following error :

module 'shap' has no attribute 'DeepExplainer'

I uninstalled and installed the SHAP module again and searched the internet. I coudn't find how to fix it.

The code is as follows:

explainer = shap.DeepExplainer(
    model=model,
    data=background_tensor,
    batch_size=4       
)

I appreciate any help.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.