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


scoringutils documentation built on April 3, 2025, 6:07 p.m.