Skip to content

Commit

Permalink
make num_test an explicit argument of cli
Browse files Browse the repository at this point in the history
  • Loading branch information
thorben-frank committed Jan 11, 2024
1 parent a81e6ac commit a254a9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlff/CLI/run_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def evaluate_so3krates_sparse():
# Create the parser
parser = argparse.ArgumentParser(description='Evaluate a SO3kratesSparse model.')
parser.add_argument('--workdir', type=str, required=True, help='workdir')
parser.add_argument('--num_test', type=int, required=False, default=None, help='Number of test points to use.')

args = parser.parse_args()

Expand All @@ -19,7 +20,7 @@ def evaluate_so3krates_sparse():

cfg = config_dict.ConfigDict(x)

metrics = from_config.run_evaluation(config=cfg, num_test=100)
metrics = from_config.run_evaluation(config=cfg, num_test=args.num_test)
print(metrics)


Expand Down

0 comments on commit a254a9c

Please sign in to comment.