Skip to content

Commit

Permalink
Improved comments and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6022 committed Jan 13, 2025
1 parent 03c95f7 commit e075b9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baybe/insights/shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def from_surrogate(
explainer_cls: type[shap.Explainer] | str = _DEFAULT_EXPLAINER_CLS,
use_comp_rep: bool = False,
):
"""Create a SHAP insight from a campaign.
"""Create a SHAP insight from a surrogate.
For details, see :func:`make_explainer_for_surrogate`.
"""
Expand Down Expand Up @@ -320,6 +320,7 @@ def plot(
if data is None:
data = self.background_data

# Use custom scatter plot function to ignore non-numeric features
if plot_type == "scatter":
return self._plot_shap_scatter(data, show=show, **kwargs)

Expand Down

0 comments on commit e075b9e

Please sign in to comment.