powered by
scores
This function creates an object of class scores based on a data.table or similar.
new_scores(scores, metrics, ...)
An object of class scores
A data.table or similar with scores as produced by score().
score()
A character vector with the names of the scores (i.e. the names of the scoring rules used for scoring).
Additional arguments to data.table::as.data.table()
data.table::as.data.table()
if (FALSE) { df <- data.frame( model = "A", wis = "0.1" ) new_scores(df, "wis") }
Run the code above in your browser using DataLab