-
Notifications
You must be signed in to change notification settings - Fork 13
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
AIME multiple runs #48
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
"Answer": "ground_truth", | ||
} | ||
), | ||
MultiplyTransform(n_repeats=5), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can append this to the transforms to avoid repeating the previous transforms in the sequence
{ | ||
"path": os.path.join(self.evalreporting_comp.output_dir, "metric_results.jsonl"), | ||
"format": ".jsonl", | ||
"transform":RunPythonTransform("df = df.loc[(df.groupby('ID')['model_output'].transform(lambda x: x.mode().iloc[0] if not x.mode().empty else x.iloc[0]) == df['model_output']) | (df['model_output'].isna() & df.groupby('ID')['model_output'].transform(lambda x: x.mode().iloc[0] if not x.mode().empty else x.iloc[0]).isna())].drop_duplicates('ID')") # compute the majority vote over the model_output. If model_output is null, return null. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would help with readability and reusability if you implement a MajorityVoteTransform
No description provided.