mod_error | R Documentation |
Calculate error metrics for pair of vector, e.g. true and estimated values from a model
mod_error(
true,
estimated,
estimated.prob = NULL,
type = NULL,
rho = FALSE,
tau = FALSE,
na.rm = TRUE,
verbosity = 0
)
true |
Vector: True values |
estimated |
Vector: Estimated values |
estimated.prob |
Vector: Estimated probabilities for Classification, if available. |
type |
Character: "Regression", "Classification", or "Survival". If not provided, will be set to Regression if y is numeric. |
rho |
Logical: If TRUE, calculate Spearman's rho. |
tau |
Logical: If TRUE, calculate Kendall's tau. This can be slow for long vectors |
na.rm |
Logical: Passed to |
verbosity |
Integer: If > 0, print messages to console. |
In regression, NRMSE = RMSE / range(observed)
Object of class mod_error
E.D. Gennatas
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.