assert_scores: Validate an object of class 'scores'

View source: R/class-scores.R

assert_scoresR Documentation

Validate an object of class scores

Description

This function validates an object of class scores, checking that it has the correct class and that it has a metrics attribute.

Usage

assert_scores(scores)

Arguments

scores

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

Value

Returns NULL invisibly


epiforecasts/scoringutils documentation built on March 1, 2025, 8:01 p.m.