# NOT RUN {
## Requires prior installation of suggested package gbm to run
data(Boston, package = "MASS")
grid <- expand_params(
n.trees = c(50, 100),
interaction.depth = 1:2
)
fit(medv ~ ., data = Boston, model = TunedModel(GBMModel, grid = grid))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab