Skip to content

Commit

Permalink
DOC Clarify pos_label in _get_response_values (#27610)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyleeow authored Oct 20, 2023
1 parent b93f80b commit 2490ff1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sklearn/utils/_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _get_response_values(
pos_label : int, float, bool or str, default=None
The class considered as the positive class when computing
the metrics. By default, `estimators.classes_[1]` is
the metrics. If `None` and target is 'binary', `estimators.classes_[1]` is
considered as the positive class.
return_response_method_used : bool, default=False
Expand All @@ -174,7 +174,8 @@ def _get_response_values(
pos_label : int, float, bool, str or None
The class considered as the positive class when computing
the metrics. Returns `None` if `estimator` is a regressor.
the metrics. Returns `None` if `estimator` is a regressor or an outlier
detector.
response_method_used : str
The response method used to compute the response values. Only returned
Expand Down

0 comments on commit 2490ff1

Please sign in to comment.