Description Usage Arguments Value Methods (by class) Author(s)
The function oracle
performs a strategie that cannot be defined online
(in contrast to mixture). It requires in advance the knowledge of the whole
data set Y
and the expert advice to be well defined.
Examples of oracles are the best fixed expert, the best fixed convex
combination rule, the best linear combination rule, or the best expert
that can shift a few times.
Plot an aggregation procedure
1 2 3 4 5 
Y 
A vector containing the observations to be predicted. 
experts 
A matrix containing the experts
forecasts. Each column corresponds to the predictions proposed by an expert
to predict 
model 
A character string specifying the oracle to use or a list with a component

loss.type 
A string or a list with a component 'name' specifying the loss function considered to evaluate the performance. It can be 'square', 'absolute', 'percentage', or 'pinball'. In the case of the pinball loss, the quantile can be provided by assigning to loss.type a list of two elements:

awake 
A matrix specifying the
activation coefficients of the experts. Its entries lie in 
lambda 
A positive number used by the 'linear' oracle only. A possible $L_2$ regularization parameter for computing the linear oracle (if the design matrix is not identifiable) 
niter 
A positive integer for 'convex' and 'linear' oracles if direct computation of the oracle is not implemented. It defines the number of optimization steps to perform in order to approximate the oracle (default value is 3). 
... 
Additional parameters
that are passed to 
x 
An object of class 
sort 
if set to TRUE (default), it sorts the experts by performance before the plots. 
col 
colors 
An object of class 'oracle' that contains:
loss 
The average loss suffered by the oracle. For the 'shifting' oracle,
it is a vector of length 
coefficients 
Not for the 'shifting' oracle. A vector containing the best weight vector corresponding to the oracle. 
prediction 
Not for the 'shifting' oracle. A vector containing the predictions of the oracle. 
rmse 
If loss.type is the square loss (default) only.
The root mean square error (i.e., it is the square root of 
oracle
: plot
. It has one optional arguments.
Pierre Gaillard <pierre@gaillard.me>
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.