Skip to content

[MRG] ENH add macro-averaged mean squared error #1134

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ab2nour
Copy link

@Ab2nour Ab2nour commented Apr 20, 2025

Reference Issue

Closes #846

What does this implement/fix? Explain your changes.

New metric for ordinal classification: macro_averaged_mean_squared_error, following the same logic as the previously introduced macro_averaged_mean_absolute_error.

Changes:

  • implemented macro_averaged_mean_squared_error
  • added new metric entry, reference and link in the documentation
  • exported function in __init__.py
  • added minimal test case & registered test public function
  • CI passing (preview in my fork)

Any other comments?

A comment in the issue suggested adding a squared=True parameter.

As of scikit-learn 1.4 (see scikit-learn/scikit-learn#26734), this is now outdated: the new function is standalone.


Let me know if further changes are needed.

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.

[ENH] Add macro-averaged mean squared error
1 participant