epiforecasts / scoringutils

Utilities for Scoring and Assessing Predictions
https://epiforecasts.io/scoringutils/
Other
48 stars 20 forks source link

Ensure that summarise_scores() works with a data.frame or similar #805

Closed nikosbosse closed 5 months ago

nikosbosse commented 5 months ago

Description

This PR closes #804.

As discussed in #804, summarise_scores() currently doesn't produce a helpful warning when you pass in a data.frame. This PR updates summarise_score() such that it also handles a data.frame as input (provided, that a metrics attribute is present.

Thank you to @damonbayer for raising this point!

Checklist