Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
priyakasimbeg committed Jul 29, 2024
1 parent 006b07e commit 4238cb2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scoring/score_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
'submission_directory',
None,
'Path to submission directory containing experiment directories.')
flags.DEFINE_string('output_dir',
'scoring_results',
'Path to save performance profile artifacts, submission_summaries and results files.')
flags.DEFINE_string(
'output_dir',
'scoring_results',
'Path to save performance profile artifacts, submission_summaries and results files.'
)
flags.DEFINE_boolean('compute_performance_profiles',
False,
'Whether or not to compute the performance profiles.')
Expand Down Expand Up @@ -133,6 +135,7 @@ def get_submission_summary(df, include_test_split=True):
logging.info('\n' + tabulate(df, headers='keys', tablefmt='psql'))
return df


def compute_leaderboard_score(df, normalize=False):
"""Compute leaderboard score by taking integral of performance profile.
Expand Down Expand Up @@ -215,6 +218,7 @@ def main(_):
scores_str = tabulate(scores, headers='keys', tablefmt='psql')
logging.info(f'Scores: \n {scores_str}')


if __name__ == '__main__':
# flags.mark_flag_as_required('submission_directory')
app.run(main)

0 comments on commit 4238cb2

Please sign in to comment.