Description Usage Arguments Value
Fit a learner on training folds and get predictions on validation folds
1 | get_or_fit(task, folds, W, A, Y, sl_control)
|
task |
A named list identifying what training_folds to fit the learner on. The function returns predictions from this fit on the remaining folds (i.e., the validation folds). |
folds |
Vector identifying which fold observations fall into. |
Y |
A matrix or data.frame of outcomes. |
sl_control |
A list with named entries ensemble.fn, optim_risk_fn, weight_fn,
cv_risk_fn, family. Available functions can be viewed with |
X |
A matrix or data.frame of predictors. |
A named list with task and output of super learner wrapper fit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.