View source: R/weighted_rmse.R
weighted_rmse | R Documentation |
Calculate a weighted RMSE. Weights are based on 'time' in the case of the weights variable. (E.g. older errors weigh less). And also based on the 'direction' e.g. predicting to few used ressources is worse than predicting a few ressources used too much.
weighted_rmse( actual, predicted, weights = exp(-(length(actual):1)/14), worsenGoodExpections = 1.5 )
actual |
Real Data, vector of observations |
predicted |
Predicted Data, vector of observations |
weights |
Time based decay. Default is an exponential decay |
worsenGoodExpections |
Factor by how much predicting too few used ressources should be punished more. |
weighted RMSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.