Description Usage Arguments Details Examples
Calculate Mean-Square-Logarithmic Error (Deviation)
For the ith sample, Squared Logarithmic Error is calculated as SLE = (log(prediction + alpha) - log(actual + alpha))^2. MSE is then mean(squared logarithmic errors). alpha (1 by default) can be used to prevent taking log(0) for data that contains non positive values
1 |
preds |
A vector of prediction values in [0, 1] |
actuals |
A vector of actuals values in 0, 1, or FALSE, TRUE |
weights |
Optional vectors of weights |
na.rm |
Should (prediction, actual) pairs with at least one NA value be ignored? |
alpha |
(default = 1) See the formula details. Primary purpose is to prevent taking log(0) |
Calculate Mean-Square-Logarithmic Error (Deviation)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.