loss | R Documentation |
The function loss
computes the sequence of instantaneous losses suffered
by the predictions in x
to predict the observation in y
.
loss(
x,
y,
pred = NULL,
loss.type = list(name = "square"),
loss.gradient = FALSE
)
x |
|
y |
|
pred |
|
loss.type |
|
loss.gradient |
|
A vector of length T
containing the sequence of
instantaneous losses suffered by the expert predictions (x) or the gradient computed on the aggregated predictions (pred).
Pierre Gaillard <pierre.gaillard@inria.fr>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.