Skip to content
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

median absolute error #27

Open
oxinabox opened this issue Jul 23, 2024 · 1 comment
Open

median absolute error #27

oxinabox opened this issue Jul 23, 2024 · 1 comment

Comments

@oxinabox
Copy link

I found a paper using this

Its simple enough to implement:

median_absolute_error(ŷ, y) =median(abs.(ŷ .- y))
const mdae = median_absolute_error

Its not the fastest measure to compute, but on most sizes of test data it is going to be cheap vs training.

@ablaom
Copy link
Member

ablaom commented Jul 23, 2024

PR welcome.

This probably follows the pattern of RSqaured and would have the same traits.

You will want to add missing handling, which you can do by including the supports_missings_measure wrapper in this pipeline.

You can add the aliases median_absolute_error and mdae when you "register" the new constructor.

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

No branches or pull requests

2 participants