Assert that inputs are correct for nominal forecasts
Source:R/metrics-nominal.R
assert_input_nominal.Rd
Function assesses whether the inputs correspond to the requirements for scoring nominal forecasts.
Arguments
- observed
Input to be checked. Should be a factor of length n with N levels holding the observed values. n is the number of observations and N is the number of possible outcomes the observed values can assume. output)
- predicted
Input to be checked.
predicted
should be a vector of length n, holding probabilities. Alternatively,predicted
can be a matrix of size n x 1. Values represent the probability that the corresponding value inobserved
will be equal to the highest available factor level.- predicted_label
Factor of length N with N levels, where N is the number of possible outcomes the observed values can assume.