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

Choose which metric to optimize for CrossEncoder #2628

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ir2718
Copy link
Contributor

@ir2718 ir2718 commented May 5, 2024

Inspired by issue #2624 and Huggingface Trainer's metric_for_best_model, I thought it would be a nice addition to choose which metric an evaluator should optimize.

PR Overview

The PR adds functionality for choosing the optimized metric for all CrossEncoder.evaluation classes which calculate multiple metrics.

Details

  • Addition of an enum for all metrics
  • Addition of return_metric parameter to CEBinaryClassificationEvaluator
  • Addition of return_metric parameter to CECorrelationEvaluator
  • Addition of return_metric parameter to CERerankingEvaluator

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.

None yet

1 participant