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

Added batching to regression metrics #297

Merged

Conversation

norm4nn
Copy link
Contributor

@norm4nn norm4nn commented Sep 2, 2024

Following up on #144 issue:

I've added batching to the Regression metrics, similar to the batching implemented in the Distances metrics. However, I'm not entirely sure if I fully understood the issue, so I would greatly appreciate any feedback.

I did not make changes to the following metrics:

  • mean_pinball_loss
  • d2_absolute_error_score
  • d2_pinball_score

These metrics appear to already support batching through the :multioutput argument. If that's the case, perhaps we should consider standardizing the argument to :axes for consistency across similar functions.

Please let me know if I’m mistaken about anything.

Copy link
Contributor

@josevalim josevalim left a comment

Choose a reason for hiding this comment

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

LGTM!

@msluszniak, is this what you had in mind?

@msluszniak
Copy link
Contributor

Yes, that's exactly what I meant. Originally, I added option multioutput to mimic sklearn, but now maybe it'll be more beneficial to remove it and support it as you do it @norm4nn, what do you think?

@msluszniak msluszniak changed the title Added batching to regression metrcs Added batching to regression metrics Sep 7, 2024
@norm4nn
Copy link
Contributor Author

norm4nn commented Sep 9, 2024

Sounds good, I’ll go with your suggestion!

Copy link
Contributor

@msluszniak msluszniak left a comment

Choose a reason for hiding this comment

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

Superb! Just only mix format and we are good to go :)

@josevalim josevalim merged commit 975938a into elixir-nx:main Sep 13, 2024
2 checks passed
@josevalim
Copy link
Contributor

💚 💙 💜 💛 ❤️

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.

3 participants