Date: 2025-01-26 10:31:58
Score: 3
Natty:
Does your CNN model expects 2 inputs? if yes just use the GradientExplainer instead of DeepExplainer.
Use this
explainer = shap.GradientExplainer(model, X_train[0:10])
refernce: https://github.com/shap/shap/blob/master/notebooks/image_examples/image_classification/Multi-input%20Gradient%20Explainer%20MNIST%20Example.ipynb
Reasons:
- Probably link only (1):
- Low length (1):
- Has code block (-0.5):
- Contains question mark (0.5):
- Low reputation (1):
Posted by: Hithesh Jay