| loss_huber | R Documentation |
Creates a Huber loss function object.
loss_huber(delta = 1)
delta |
A positive numeric value controlling the transition point between squared and absolute loss behavior. |
An object of class "met_loss".
Huber, P. J. (1964). Robust Estimation of a Location Parameter. The Annals of Mathematical Statistics, 35(1), 73–101. doi:10.1214/aoms/1177703732
loss <- loss_huber(delta = 1)
loss$fn(c(1, 2, 3), c(1.1, 1.9, 3.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.