Description Usage Arguments Value
get_risk
computes the cross-validated risk of the entire
procedure by calling y_weight_control$cv_risk_fn
with this
input list.
1 2 | get_risk_input(split_Y, Ynames, all_fits, V, learners, all_sl,
all_fit_tasks, all_weight, sl_control)
|
split_Y |
The outcome matrix split by relevant validation folds. |
Ynames |
The names of the outcomes. Used to search |
all_fits |
List of all learner fits. |
V |
Number of folds. |
learners |
Vector of super learner vectors. |
all_sl |
List of all super learner weight fits. |
all_fit_tasks |
List of all learner fit tasks (faster to search over than search over all_fits). |
all_weight |
List of all outcome weight fits. |
sl_control |
List of super learner controls. |
List with each entry a list with entries: valid_fold (the number of the
corresponding fold), Y (outcome matrix in this outer-most validation fold),
pred (matrix of outcome predictions for this validation fold from super learner
fit in V-1 training folds), and y_weight (vector of outcome weights computed by
minimizing V-2 cross-validated risk of composite super learner).
get_risk_input
is only used to compute the cross-validated risk of
composite super learner on the composite outcome
and so is only used in the outer most cross-validation layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.