Skip to content

Commit

Permalink
Message error changed
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-vignal committed Nov 7, 2023
1 parent 7f93a09 commit 728dc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapash/backend/shap_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, model, preprocessing=None, masker=None, explainer_args=None,
self.explainer = shap.Explainer(model=model.predict, masker=self.masker)
# if we get here then we don't know how to handle what was given to us
else:
raise ValueError("The passed model is not callable and cannot be analyzed directly with the given masker! Model: " + str(model))
raise ValueError("The model is not recognized by Shapash! Model: " + str(model))


def run_explainer(self, x: pd.DataFrame) -> dict:
Expand Down

0 comments on commit 728dc80

Please sign in to comment.