10000 [MRG] Add MAE formula in the regression criteria docs. (#8402) · Sundrique/scikit-learn@17b97d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17b97d9

Browse files
aashilSundrique
authored andcommitted
[MRG] Add MAE formula in the regression criteria docs. (scikit-learn#8402)
1 parent 6cb903c commit 17b97d9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

doc/modules/tree.rst

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,15 +486,25 @@ Regression cr 8000 iteria
486486
-------------------
487487

488488
If the target is a continuous value, then for node :math:`m`,
489-
representing a region :math:`R_m` with :math:`N_m` observations, a common
490-
criterion to minimise is the Mean Squared Error
489+
representing a region :math:`R_m` with :math:`N_m` observations, common
490+
criteria to minimise are
491+
492+
Mean Squared Error:
491493

492494
.. math::
493495
494496
c_m = \frac{1}{N_m} \sum_{i \in N_m} y_i
495497
496498
H(X_m) = \frac{1}{N_m} \sum_{i \in N_m} (y_i - c_m)^2
497499
500+
Mean Absolute Error:
501+
502+
.. math::
503+
504+
\bar{y_m} = \frac{1}{N_m} \sum_{i \in N_m} y_i
505+
506+
H(X_m) = \frac{1}{N_m} \sum_{i \in N_m} |y_i - \bar{y_m}|
507+
498508
where :math:`X_m` is the training data in node :math:`m`
499509

500510
.. topic:: References:

0 commit comments

Comments
 (0)
0