Skip to content

Adjustments to calculating metrics on JASMIN#48

Merged
treigerm merged 17 commits into
mainfrom
jasmin_adjustments
Jul 22, 2025
Merged

Adjustments to calculating metrics on JASMIN#48
treigerm merged 17 commits into
mainfrom
jasmin_adjustments

Conversation

@treigerm
Copy link
Copy Markdown
Member

This PR slightly changes the workflow for how to compute the metrics for all compressors and datasets. The problem was that running the old script would simply sequentially go over all compressors and datasets and compute the metrics. Running the script by itself was getting a bit too slow so this PR allows to parallelize the metric computation in a MapReduce manner:

  • The new script compute_metrics.py allows the user to compute the metrics for only a single dataset and compressor (the old functionality of running sequentially is still supported). On JASMIN, I am using this script to submit lots of SLURM jobs to parallelize the metrics computation.
  • A new second script concatenate_metrics.py is used to concatenate the results from the compute_metrics.py script into one CSV.

I have also added some exception handling for the metric computations so that if one metric computation produces an error this doesn't terminate the whole script but instead produces a NaN value for that specific metric.

@treigerm treigerm force-pushed the jasmin_adjustments branch from ccf676e to 366e44e Compare July 21, 2025 14:11
@treigerm
Copy link
Copy Markdown
Member Author

I've messed up the commit history here a bit. Once we squash the commits before the squash and merge, I'll manually the commit message to delete all the commits that have already been merged to main.

Copy link
Copy Markdown
Collaborator

@juntyr juntyr left a comment

Choose a reason for hiding this comment

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

LGTM

@treigerm treigerm merged commit df60633 into main Jul 22, 2025
3 checks passed
@treigerm treigerm deleted the jasmin_adjustments branch July 22, 2025 09:57
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