10000 [MRG] Add Explanation of MSE vs Friedman MSE vs MAE criterion in Regr… · scikit-learn/scikit-learn@8485d3e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8485d3e

Browse files
warut-vijitjmschrei
authored andcommitted
[MRG] Add Explanation of MSE vs Friedman MSE vs MAE criterion in Regression Tree Building (#9367)
* clarified documentation for regression tree criterion * added explanation on doc/modules/tree.rst
1 parent 2a1d8ba commit 8485d3e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

doc/modules/tree.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,10 @@ Regression criteria
481481

482482
If the target is a continuous value, then for node :math:`m`,
483483
representing a region :math:`R_m` with :math:`N_m` observations, common
484-
criteria to minimise are
484+
criteria to minimise as for determining locations for future
485+
splits are Mean Squared Error, which minimizes the L2 error
486+
using mean values at terminal nodes, and Mean Absolute Error, which
487+
minimizes the L1 error using median values at terminal nodes.
485488

486489
Mean Squared Error:
487490

sklearn/tree/tree.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,11 @@ class DecisionTreeRegressor(BaseDecisionTree, RegressorMixin):
879879
criterion : string, optional (default="mse")
880880
The function to measure the quality of a split. Supported criteria
881881
are "mse" for the mean squared error, which is equal to variance
882-
reduction as feature selection criterion, and "mae" for the mean
883-
absolute error.
882+
reduction as feature selection criterion and minimizes the L2 loss
883+
using the mean of each terminal node, "friedman_mse", which uses mean
884+
squared error with Friedman's improvement score for potential splits,
885+
and "mae" for the mean absolute error, which minimizes the L1 loss
886+
using the median of each terminal node.
884887
885888
.. versionadded:: 0.18
886889
Mean Absolute Error (MAE) criterion.

0 commit comments

Comments
 (0)
0