Skip to content

Commit 02bec70

Browse files
committed
fix docstrings
1 parent 8eba585 commit 02bec70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

skore/src/skore/_sklearn/_estimator/feature_importance_accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def _check_metric(metric: Any) -> Scoring | None:
155155
# Convert to scorer
156156
return {metric: metric_to_scorer[cast(Metric, metric)]}
157157
raise TypeError(
158-
"If scoring is a string, it must be one of "
158+
"If metric is a string, it must be one of "
159159
f"{list(metric_to_scorer.keys())}; got '{metric}'"
160160
)
161161
elif isinstance(metric, list | tuple):

skore/src/skore/_sklearn/_estimator/metrics_accessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ def log_loss(
12631263
>>> split_data = train_test_split(X=X, y=y, random_state=0, as_dict=True)
12641264
>>> classifier = LogisticRegression(max_iter=10_000)
12651265
>>> report = EstimatorReport(classifier, **split_data)
1266-
>>> report.sklearn_metrics.log_loss()
1266+
>>> report.metrics.log_loss()
12671267
0.10...
12681268
"""
12691269
return self._log_loss(

0 commit comments

Comments
 (0)