Description Usage Arguments Details Value
In general, sl_control$ensemble_fn
and y_weight_control$ensemble_fn
must accept named inputs, pred and weight, which are, respectively, a matrix and a vector.
The matrix has columns corresponding to different learner fits (for sl_control$ensemble_fn
)
or to the different components of the multivariate outcome (for y_weight_control$ensemble_fn
).
1 | ensemble_linear(pred, weight)
|
pred |
A matrix of predictions |
weight |
A vector of ensemble weights (should have same length as number
of columns in |
In this case, the function computes a linear combination.
A vector of ensembled values with length equal to the number of
rows of pred
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.