Argument error in the LSTM example #2039
Labels
awaiting feedback
Indicates that further information is required from the issue creator
deep explainer
Relating to DeepExplainer, tensorflow or pytorch
I attempted to run the example in with TF LSTM model . When attempting to compute the Shapley values I get the following error:
shap_values = explainer.shap_values(x_test[:10]) XXX\shap\explainers\_deep\__init__.py", line 124, in shap_values return self.explainer.shap_values(X, ranked_outputs, output_rank_order, check_additivity=check_additivity) XXX\shap\explainers\_deep\deep_tf.py", line 308, in shap_values sample_phis = self.run(self.phi_symbolic(feature_ind), self.model_inputs, joint_input) XXX\shap\explainers\_deep\deep_tf.py", line 365, in run return self.execute_with_overridden_gradients(anon) XXX\shap\explainers\_deep\deep_tf.py", line 401, in execute_with_overridden_gradients out = f() XXX\shap\explainers\_deep\deep_tf.py", line 358, in anon data = X[i].reshape(shape) TypeError: 'NoneType' object cannot be interpreted as an integer
Any idea how to fix this?
Thanks!
The text was updated successfully, but these errors were encountered: