Implement score
class + attribute for the output of score()
#516
Labels
Breaking change
This issue discusses or suggests a potentially breaking change
implementation-ready
This is ready for implementation
Milestone
Update
We decided that
score()
outputs an object of classscore
with a single attributescoring_rules
Old description
Questions:
score()
and / orsummarise_scores()
be?Current behaviour on the development branch: The output of
score()
retains its class, i.e. is still an object of classforecast_binary
.One disadvantage of this is that if you try to run
score()
again on that output, then unexpected things happen (i.e. you get a complaint thatpredicted
andobserved
are missing). @seabbs therefore suggested to have a new class for the output ofscore()
.Desirable features of a solution:
get_forecast_unit()
on the output. This is necessary e.g. for pairwise comparisons and helpful for plotting.Updated my thinking a bit about the following:
summarise_scores()
, i.e.by
add_pairwise_comparison()
The main use case I see for this is if you want to share the
by
argument across different function calls (i.e. you set it once, and another function respects it). But that seems brittle and dangerous. If we're able to track the names of the scoring rules used for scoring, then we'd automatically have the summary level ofsummarise_scores()
(i.e. all columns that are not a score).I would propose to give the output of
score()
a new class, e.g.score
. Functions likeadd_pairwise_comparison()
orsummarise_scores()
would not get their own output class. I don't think their behaviour is so different (e.g. for plotting) that we would really need a new class.I'm not even sure I would restrict them to accepting an object of class
score
as input (but have to rethink a bit).I currently don't see a good way to get around setting attributes to keep track of the names of the scoring rules used within
score()
. What do you think?The text was updated successfully, but these errors were encountered: