as_scores: Create an object of class 'scores' from data

View source: R/class-scores.R

as_scoresR Documentation

Create an object of class scores from data

Description

This convenience function wraps new_scores() and validates the scores object.

Usage

as_scores(scores, metrics)

Arguments

scores

A data.table or similar with scores as produced by score().

metrics

A character vector with the names of the scores (i.e. the names of the scoring rules used for scoring).

Value

An object of class scores


epiforecasts/scoringutils documentation built on Dec. 11, 2024, 11:12 a.m.