Skip to content

Commit 5085a7f

Browse files
nelson-liuamueller
authored andcommitted
add versionadded for MAE (scikit-learn#7105)
1 parent dcca31c commit 5085a7f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

sklearn/ensemble/forest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,9 @@ class RandomForestRegressor(ForestRegressor):
959959
reduction as feature selection criterion, and "mae" for the mean
960960
absolute error.
961961
962+
.. versionadded:: 0.18
963+
Mean Absolute Error (MAE) criterion.
964+
962965
max_features : int, float, string or None, optional (default="auto")
963966
The number of features to consider when looking for the best split:
964967
@@ -1325,6 +1328,9 @@ class ExtraTreesRegressor(ForestRegressor):
13251328
reduction as feature selection criterion, and "mae" for the mean
13261329
absolute error.
13271330
1331+
.. versionadded:: 0.18
1332+
Mean Absolute Error (MAE) criterion.
1333+
13281334
max_features : int, float, string or None, optional (default="auto")
13291335
The number of features to consider when looking for the best split:
13301336

sklearn/ensemble/gradient_boosting.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,8 @@ class GradientBoostingClassifier(BaseGradientBoosting, ClassifierMixin):
13061306
generally the best as it can provide a better approximation in
13071307
some cases.
13081308
1309+
.. versionadded:: 0.18
1310+
13091311
min_samples_split : int, float, optional (default=2)
13101312
The minimum number of samples required to split an internal node:
13111313
@@ -1667,6 +1669,8 @@ class GradientBoostingRegressor(BaseGradientBoosting, RegressorMixin):
16671669
generally the best as it can provide a better approximation in
16681670
some cases.
16691671
1672+
.. versionadded:: 0.18
1673+
16701674
min_samples_split : int, float, optional (default=2)
16711675
The minimum number of samples required to split an internal node:
16721676

sklearn/tree/tree.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@ class DecisionTreeRegressor(BaseDecisionTree, RegressorMixin):
802802
reduction as feature selection criterion, and "mae" for the mean
803803
absolute error.
804804
805+
.. versionadded:: 0.18
806+
Mean Absolute Error (MAE) criterion.
807+
805808
splitter : string, optional (default="best")
806809
The strategy used to choose the split at each node. Supported
807810
strategies are "best" to choose the best split and "random" to choose

0 commit comments

Comments
 (0)