-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script to add entries to leaderboard locally
- Loading branch information
1 parent
5d4a311
commit c424cf8
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import argparse | ||
import subprocess | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="Add entries to the leaderboard.") | ||
parser.add_argument("experiment_prefixes", nargs="+", type=str, help="experiment prefixes") | ||
args = parser.parse_args() | ||
for experiment_prefix in args.experiment_prefixes: | ||
print(f"\nWorking on experiment prefix: {experiment_prefix}") | ||
experiment_names = [experiment_prefix + "_test_normal", experiment_prefix + "_test_challenge"] | ||
for experiment_name in experiment_names: | ||
subprocess.run(f"appworld evaluate {experiment_name}_test_normal test_normal", check=True, shell=True) | ||
subprocess.run(f"appworld evaluate {experiment_name}_test_challenge test_challenge", check=True, shell=True) | ||
subprocess.run(f"appworld make {experiment_name}_test_normal {experiment_name}_challenge --save", check=True, shell=True) | ||
|
||
if __name__ == "__main__": | ||
main() |