powered by
Fit a super learner model to predictions from multiple base learners.
SuperModel( ..., model = GBMModel, control = MachineShop::settings("control"), all_vars = FALSE )
model functions, function names, calls, or vector of these to serve as base learners.
model function, function name, or call defining the super model.
control function, function name, or call defining the resampling method to be employed for the estimation of base learner weights.
logical indicating whether to include the original predictor variables in the super model.
SuperModel class object that inherits from MLModel.
SuperModel
MLModel
factor, numeric, ordered, Surv
factor
numeric
ordered
Surv
van der Lann, M.J., Hubbard A.E. (2007) Super Learner. Statistical Applications in Genetics and Molecular Biology, 6(1).
fit, resample
fit
resample
# NOT RUN { model <- SuperModel(GBMModel, SVMRadialModel, GLMNetModel(lambda = 0.01)) model_fit <- fit(sale_amount ~ ., data = ICHomes, model = model) predict(model_fit, newdata = ICHomes) # }
Run the code above in your browser using DataLab