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

AIME multiple runs #48

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

AIME multiple runs #48

wants to merge 4 commits into from

Conversation

lchen001
Copy link
Collaborator

No description provided.

eureka_ml_insights/configs/aime.py Outdated Show resolved Hide resolved
eureka_ml_insights/configs/aime.py Outdated Show resolved Hide resolved
eureka_ml_insights/configs/aime.py Outdated Show resolved Hide resolved
vidhishanair
vidhishanair previously approved these changes Nov 18, 2024
Copy link
Collaborator

@vidhishanair vidhishanair left a 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),
Copy link
Collaborator

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.
Copy link
Collaborator

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

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