8000 DOC fix docstring for monotonic constraing in hist-GBDT (#18579) · thomasjpfan/scikit-learn@3b98f19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b98f19

Browse files
authored
DOC fix docstring for monotonic constraing in hist-GBDT (scikit-learn#18579)
8000
1 parent 2286904 commit 3b98f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ class HistGradientBoostingRegressor(RegressorMixin, BaseHistGradientBoosting):
851851
is always reserved for missing values. Must be no larger than 255.
852852
monotonic_cst : array-like of int of shape (n_features), default=None
853853
Indicates the monotonic constraint to enforce on each feature. -1, 1
854-
and 0 respectively correspond to a positive constraint, negative
854+
and 0 respectively correspond to a negative constraint, positive
855855
constraint and no constraint. Read more in the :ref:`User Guide
856856
<monotonic_cst_gbdt>`.
857857
@@ -1082,7 +1082,7 @@ class HistGradientBoostingClassifier(ClassifierMixin,
10821082
is always reserved for missing values. Must be no larger than 255.
10831083
monotonic_cst : array-like of int of shape (n_features), default=None
10841084
Indicates the monotonic constraint to enforce on each feature. -1, 1
1085-
and 0 respectively correspond to a positive constraint, negative
1085+
and 0 respectively correspond to a negative constraint, positive
10861086
constraint and no constraint. Read more in the :ref:`User Guide
10871087
<monotonic_cst_gbdt>`.
10881088

0 commit comments

Comments
 (0)
0