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

Add metrics as functions #214

Merged
merged 27 commits into from
Jul 17, 2024
Merged

Add metrics as functions #214

merged 27 commits into from
Jul 17, 2024

Conversation

clefourrier
Copy link
Member

@clefourrier clefourrier commented Jul 5, 2024

Need #212 and #213 to be merged first

@clefourrier clefourrier changed the base branch from main to hynek_function July 5, 2024 12:38
@clefourrier clefourrier requested a review from NathanHB July 5, 2024 13:12
@clefourrier clefourrier changed the base branch from hynek_function to main July 9, 2024 13:29
@@ -91,7 +91,7 @@ class LightevalTaskConfig:
prompt_function: Callable # [[dict, str], Doc]
hf_repo: str
hf_subset: str
metric: Tuple[Union[str, Metrics]]
metric: Tuple[Union[Metric, Metrics]]
Copy link
Member

Choose a reason for hiding this comment

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

in what case can we have a metrics enum instead of a metric ?

Copy link
Member Author

Choose a reason for hiding this comment

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

If we pass Metrics.name_of_the_metric, it's different from passing a Metric

@clefourrier clefourrier merged commit aaf7e8a into main Jul 17, 2024
2 checks passed
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