| huber_loss | R Documentation |
Huber loss
huber_loss(actuals, preds, delta = 1, na.rm = FALSE)
actuals |
A numeric vector of actual values. |
preds |
A numeric vector of prediction values. |
delta |
A parameter that shows the error difference and controls the calculation. |
na.rm |
A logical value indicating whether actual and prediction pairs with at least one NA value should be ignored. |
Huber loss is less sensitive to outliers than MSE.
Huber loss.
Huber, Peter J. (1964): Robust Estimation of a Location Parameter. In: Annals of Mathematical Statistics, 35 (1964) 1, 73-101. Hasti, Trevor; Tibshirani, Robert; Friedman, Jerome (2009): The Elements of Statistical Learning. 2nd ed., 2009. New York: Springer. (p. 349).
Other Metrics:
accuracy(),
cross_entropy(),
dice(),
entropy(),
erf(),
erfc(),
erfcinv(),
erfinv(),
gini_impurity(),
iou(),
log_cosh_loss(),
mae(),
mape(),
mse(),
msle(),
quantile_loss(),
rmse(),
rmsle(),
rmspe(),
sse(),
stderror(),
vc(),
wape(),
wmape()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.