| ml_make_ensemble | R Documentation |
Creates an equal- or user-weighted blend of multiple model objects produced
by ml_make_model(). The returned fit trains each component; predict
combines component predictions with an NA-safe weighted average.
ml_make_ensemble(..., weights = NULL)
... |
Two or more model objects each with |
weights |
Optional numeric vector of blend weights (recycled). |
A list with $fit and $predict closures for the ensemble.
## Not run:
ens <- ml_make_ensemble(ml_make_model("ridge"),
ml_make_model("rf"),
ml_make_model("xgboost"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.