rmsle | R Documentation |
Root mean squared log error
rmsle(x, true_x = mean(Ln(x)))
x |
positive numeric vector |
true_x |
numeric scalar, target x value, |
scalar, root mean of the squared log ratio of observations to target value
x <- rlnorm(n = 1e5)
rmsle(x) # should be very close to sdlog of lnorm, 1
y <- rnorm(n = 5000, mean = 12 )
rmsle(y, true_x = Ln(12))
1/12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.