measure_cont | R Documentation |
Evaluates the performance of a continuous response model using RMSE and MAE.
measure_cont(obs, pred)
obs |
A numeric vector of observed (true) values. |
pred |
A numeric vector of predicted values. |
A list containing:
rmse
Root Mean Squared Error.
mae
Mean Absolute Error.
obs <- c(3.2, 4.1, 5.6)
pred <- c(3.0, 4.3, 5.5)
measure_cont(obs, pred)
# Returns: list(rmse = 0.1732051, mae = 0.1666667)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.