mse_vec | R Documentation |
Calculate the mean squared error. This metric is in squared units of the original data.
mse_vec(truth, estimate, na_rm = TRUE, ...) mse(data, ...) ## S3 method for class 'data.frame' mse(data, truth, estimate, na_rm = TRUE, ...)
truth |
The column identifier for the true class results (that is a factor). This should be an unquoted column name although this argument is passed by expression and supports quasiquotation (you can unquote column names). For _vec() functions, a factor vector. |
estimate |
The column identifier for the predicted class results (that is also factor). As with truth this can be specified different ways but the primary method is to use an unquoted variable name. For _vec() functions, a factor vector. |
na_rm |
A logical value indicating whether NA values should be stripped before the computation proceeds. |
... |
Not currently used. |
data |
A 'data.frame' containing the 'truth' and 'estimate' columns. |
A 'tibble' with columns '.metric', '.estimator', and '.estimate' and 1 row of values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.