8000 Explain the reasons for deprecation · scikit-learn/scikit-learn@e04af1c · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit e04af1c

Browse files
committed
Explain the reasons for deprecation
1 parent f9f1a3e commit e04af1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sklearn/ensemble/_gb.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ class GradientBoostingClassifier(ClassifierMixin, BaseGradientBoosting):
809809
.. versionadded:: 0.18
810810
.. deprecated:: 0.24
811811
`criterion='mae'` is deprecated and will be removed in version
812-
0.26.
812+
0.26. Use `criterion='friedman_mse'` or `'mse'` instead, as trees
813+
should use a least-square criterion in Gradient Boosting.
813814
814815
min_samples_split : int or float, default=2
815816
The minimum number of samples required to split an internal node:
@@ -1330,7 +1331,8 @@ class GradientBoostingRegressor(RegressorMixin, BaseGradientBoosting):
13301331
.. versionadded:: 0.18
13311332
.. deprecated:: 0.24
13321333
`criterion='mae'` is deprecated and will be removed in version
1333-
0.26.
1334+
0.26. The correct way of minimizing the absolute error is to use
1335+
`loss='lad'` instead.
13341336
13351337
min_samples_split : int or float, default=2
13361338
The minimum number of samples required to split an internal node:

0 commit comments

Comments
 (0)
0