Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG] Add MAE formula in the regression criteria docs. #8402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

aashil
Copy link
Contributor

@aashil aashil commented Feb 19, 2017

Location: doc/modules/tree.rst

Reference Issue

Fixes #8396

What does this implement/fix? Explain your changes.

This PR adds the Mean Absolute Error formula in the regression criteria docs.

@aashil
Copy link
Contributor Author

aashil commented Feb 19, 2017

@codecov-io
Copy link

codecov-io commented Feb 19, 2017

Codecov Report

Merging #8402 into master will increase coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #8402      +/-   ##
==========================================
+ Coverage   94.75%   94.75%   +<.01%     
==========================================
  Files         342      342              
  Lines       60813    60816       +3     
==========================================
+ Hits        57621    57624       +3     
  Misses       3192     3192
Impacted Files Coverage Δ
sklearn/neighbors/tests/test_kd_tree.py 97.45% <ø> (ø)
sklearn/neighbors/tests/test_kde.py 98.85% <ø> (ø)
sklearn/neighbors/tests/test_ball_tree.py 98% <ø> (ø)
sklearn/gaussian_process/tests/test_kernels.py 98.85% <ø> (+0.02%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ba84d7...91882bb. Read the comment docs.

.. math::

c_m = \frac{1}{N_m} \sum_{i \in N_m} y_i

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think no need to write c_m again, as it already mention above. Better way is to place c_m before Mean Squared Error and Mean Absolute Error once instead of writing in both section individually.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's fine to repeat the definition of c_m, it makes the definition of MAE. But instead of c_m I would actually use the following notation for that variable name:

\bar{y_m} = \frac{1}{N_m} \sum_{i \in N_m} y_i

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides the cosmetic comment, +1 on my side.

@aashil
Copy link
Contributor Author

aashil commented Feb 21, 2017

@aashil
Copy link
Contributor Author

aashil commented Feb 23, 2017

Ping @amueller @lesteve @jnothman

@jnothman
Copy link
Member

Looks fine, assuming this is correctly the criterion we use. Which I think it is but to be sure: @nelson-liu

@nelson-liu
Copy link
Contributor

yeah, this looks fine to me as well.

@jnothman jnothman merged commit fdb32e2 into scikit-learn:master Feb 24, 2017
@jnothman
Copy link
Member

Thanks @aashil

@jnothman
Copy link
Member

jnothman commented Feb 24, 2017 via email

@nelson-liu
Copy link
Contributor

np @jnothman , always happy to weigh in. Disappointed that I haven't had the time to work on scikit-learn recently...hopefully soon.

sergeyf pushed a commit to sergeyf/scikit-learn that referenced this pull request Feb 28, 2017
@Przemo10 Przemo10 mentioned this pull request Mar 17, 2017
massich pushed a commit to massich/scikit-learn that referenced this pull request Apr 26, 2017
Sundrique pushed a commit to Sundrique/scikit-learn that referenced this pull request Jun 14, 2017
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
lemonlaug pushed a commit to lemonlaug/scikit-learn that referenced this pull request Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAE formula missing from regression criteria for trees
6 participants