mse | R Documentation |
Convenience functions for calculating loss. These can be passed as arguments to learners that support custom loss functions.
mse(x, y, na.rm = TRUE)
msew(x, y, weights = rep(1, length(y)), na.rm = TRUE)
rmse(x, y, na.rm = TRUE)
mae(x, y, na.rm = TRUE)
x |
Vector of True values |
y |
Vector of Estimated values |
na.rm |
Logical: If TRUE, remove NA values before computation. Default = TRUE |
weights |
Float, vector: Case weights |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.