Repository navigation
Add scorecard section to scripts - #530
Merged
Merged
Conversation
Add .png and .pdf files to ignored petterns. Add exclusion for scorecard template .html file
felix-e-h-p
self-requested a review
June 9, 2026 16:15
felix-e-h-p
reviewed
Jun 9, 2026
|
|
||
| backtest_dict = { | ||
| "nl_regional_48h_pv_ecmwf": | ||
| "/mnt/storage_u2_30tb_a/scratch/nl_backtests/nl_val_backtests/" |
Contributor
There was a problem hiding this comment.
Thanks for this! Be all OK to move to a config file?
Contributor
|
Looks all good to me! Just to check, perhaps team wide question - defo yaml as opposed to say argparse? |
Contributor
For me |
Contributor
Author
|
@peterdudfield @felix-e-h-p re: yaml, the reasoning here was that:
Re: having a clean tree, I'll add the config to .gitignore now, slipped my mind! |
felix-e-h-p
approved these changes
Jun 11, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
This PR adds a new folder to
scriptssection which houses a script to generate the scorecard and an HTML template for it.This is the "v0" of the scorecard. It will only calculate the metrics for the "national" forecasts, so it's not suitable for the sites pipeline! I have included the following metrics/plots:
I have left in some paths as an example in the script. For this configuration (2 backtest files, each for a year of data), the script take 2-3 minutes to run.
Potentially controversial choices:
Also, obviously, this is a long way from perfect, so any other criticism is also welcome; again though, this is a v0, and the idea is to let it develop as people use it and hopefully add more metrics/optimise it in a way that suits the workflow!
Fixes #408
Checklist:
Example of outputs
This is what the printout of the script looks like:
I didn't want to paste the whole pdf in here so a semi-helpful screenshot:

And these are the plots that went into it and were also saved as .png: