View source: R/input-check-helpers.R
check_predictions | R Documentation |
Helper function to check inputs for lower-level score functions.
check_predictions( predictions, true_values = NULL, type = c("continuous", "integer", "binary"), class = c("vector", "matrix") )
predictions |
an object with predictions. Depending on whether
|
true_values |
A vector with the true observed values of size n |
type |
character, one of "continuous" (default), "integer" or "binary" that defines the type of the forecast |
class |
character, either "vector" (default) or "matrix" that determines the class the input has to correspond to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.