View source: R/objective_function.R
smape | R Documentation |
Calculate the SMAPE value between predicted and actual values.
smape(preds, actuals)
preds |
A numeric vector of predicted values. |
actuals |
A numeric vector of actual (true) values. |
SMAPE value (percentage).
preds <- c(80, 120, 180)
actuals <- c(95, 115, 177)
smape(preds, actuals)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.