loss_function | R Documentation |
These are built-in loss functions.
RSAVS_L2(x, param)
RSAVS_L1(x, param)
RSAVS_Huber(x, param, derivative = FALSE)
x |
input numeric vector |
param |
parameters needed for the function, takes the form of numeric vector. Unused for L1 and L2. |
derivative |
logical, whether the return is the loss value or the derivative. |
Loss(or derivative) value at x.
RSAVS_L2(1 : 10)
RSAVS_L1(1 : 10)
RSAVS_Huber(seq(from = -3, to = 3, by = 0.1), param = 1.345)
RSAVS_Huber(seq(from = -3, to = 3, by = 0.1), param = 1.345, derivative = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.