BUG: Unable to Generate SHAP values for a dataframe containing text data trained on lstm model #3668
Open
2 of 4 tasks
Labels
bug
Indicates an unexpected problem or unintended behaviour
deep explainer
Relating to DeepExplainer, tensorflow or pytorch
Issue Description
Hi I am trying to generate SHAP values for my LSTM model. I am trying to pass a dataframe with only one column called 'text' that contains the text records to the explainer. However the explainer returns the following error: TypeError: cannot use a string pattern on a bytes-like object. I have attached the code that i have tried below:
Minimal Reproducible Example
Traceback
Expected Behavior
No response
Bug report checklist
Installed Versions
Name: shap
Version: 0.42.1
Summary: A unified approach to explain the output of any machine learning model.
Home-page:
Author:
Author-email: Scott Lundberg [email protected]
License: MIT License
The text was updated successfully, but these errors were encountered: