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

Pin file order in ice_scenario #1464

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Pin file order in ice_scenario #1464

merged 2 commits into from
Apr 19, 2023

Conversation

yifanmai
Copy link
Collaborator

@yifanmai yifanmai commented Apr 7, 2023

The previous official HELM runs used the arbitrary file order produced by os.listdir() and did not sort the files, so future runs must use the same file order in order to sample the same instances to reproduce the official HELM runs.

Addresses #1352

@yifanmai yifanmai requested review from percyliang and teetone April 7, 2023 03:48


def listdir_with_pinned_order(corpus_path: str) -> List[str]:
pinned_filename_order = _PINNED_FILE_ORDER.get(corpus_path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Add docstring explaining this unfortunate hack.

@yifanmai yifanmai changed the title Pin os.listdir order in ice_scenario Pin file order in ice_scenario Apr 19, 2023
@yifanmai yifanmai merged commit 485f2bf into main Apr 19, 2023
@yifanmai yifanmai deleted the yifanmai/1352-ice branch April 19, 2023 20:25
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.

2 participants