Using the Super Learner algorithm
Super Learner is an algorithm that uses various learning prediction models and finds the optimal combination of collection of algorithms. It learns best optimal fits. Ensemble methods use multiple learning algorithms to obtain better performance.
Getting ready
In this recipe, we will use the SuperLearner
package.
How to do it...
- Perform the following steps in R:
> install.packages("SuperLearner")> install.packages("caret")> install.packages("glmnet")> install.packages("xgboost")> install.packages("randomForest")> library(SuperLearner)
- To list all the available wrappers for predictions and screening, execute the following:
> listWrappers()
It will list all prediction algorithms and screening algorithms as follows:

> data(Boston, package="MASS") > training = sample(nrow(Boston), 100) > X = Boston[training, ] > X_Hold = Boston[-training, ] > Y = Boston$medv[training, ] > Y_Hold...