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

Also pass metric_kwargs to custom metric callable #456

Conversation

tomaarsen
Copy link
Member

@tomaarsen tomaarsen commented Dec 5, 2023

Hello!

Pull Request overview

  • Also pass metric_kwargs to custom metric callable

Details

You can define metric_kwargs in the Trainer to pass kwargs to an evaluate metric, but now you can also use those kwargs to pass them to your own custom metric callable. See #454 for the feature request.

Will be merged into v1.0.0-pre, which will be merged into main this week & released.

cc: @psorianom Thanks for the feature request :)

  • Tom Aarsen

@tomaarsen tomaarsen added the enhancement New feature or request label Dec 5, 2023
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@tomaarsen tomaarsen merged commit 8d5fc46 into huggingface:v1.0.0-pre Dec 5, 2023
18 checks passed
@tomaarsen tomaarsen deleted the feat/use_metric_kwargs_with_custom_metric branch December 5, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants