Skip to content

Commit

Permalink
Improve docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSosic committed Jan 14, 2025
1 parent cb86db4 commit cc41592
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baybe/insights/shap.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def model(x: np.ndarray) -> np.ndarray:
class SHAPInsight:
"""Class for SHAP-based feature importance insights.
Also supports LIME and MAPLE explainers via the ``shap`` module.
Also supports LIME and MAPLE explainers via the ``shap`` package.
"""

explainer: shap.Explainer = field(validator=instance_of(shap.Explainer))
Expand Down Expand Up @@ -172,7 +172,7 @@ def from_campaign(
Uses the measurements of the campaign as background data.
Args:
campaign: A campaign holding a recommender using a surrogate model.
campaign: A campaign using a surrogate-based recommender.
explainer_cls: See :func:`make_explainer_for_surrogate`.
use_comp_rep: See :func:`make_explainer_for_surrogate`.
Expand Down

0 comments on commit cc41592

Please sign in to comment.