Skip to content

Simplify score()#430

Merged
nikosbosse merged 6 commits intoadd-coverage-deviationfrom
create-apply-metrics
Nov 15, 2023
Merged

Simplify score()#430
nikosbosse merged 6 commits intoadd-coverage-deviationfrom
create-apply-metrics

Conversation

@nikosbosse
Copy link
Copy Markdown
Collaborator

This PR simplifies score() a bit by introducing a new function, apply_metrics() that takes care of applying all metrics.

The function evaluates an expression. One question to think about: should this expression be inside or outside the function? Having it inside makes the rest of the code clearer. Having it outside allows for more customisability.

Another downside of the current approach is that it is difficult to do things e.g. by forecast_unit. The way this is handled currently is that a matrix is constructed based on the data for quantile and sample-based forecasts (this is helpful for speed reasons).

This PR closes #398 and also #429 as run_safely() now runs within score()

@nikosbosse nikosbosse requested a review from seabbs November 14, 2023 15:11
Copy link
Copy Markdown
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

All looks fine!

Base automatically changed from reword-add_coverage2 to add-coverage-deviation November 15, 2023 17:04
@nikosbosse nikosbosse merged commit cc72c53 into add-coverage-deviation Nov 15, 2023
@nikosbosse nikosbosse deleted the create-apply-metrics branch November 15, 2023 17:07
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