Lab 3: Classification (cont.)

GradientBoosting

Gradient Boosting, implemented through the GradientBoostingClassifier in the sklearn.ensemble package, is anoother powerful classification technique.

Like random forests, it trains a set of n decision trees, that are combined in an ensemble of n_estimators. Each tree, however, is trained over the original dataset and usually has a fixed maximum depth. Beside many other parameters we can choose the maximum tree depth, through the max_depth parameter and the learning rate to use, through the learning_rate parameter.

Next, we can see the results achieved by a set of parameters combinations.

After the plot you can see the parameters for which the best results were achieved. So let's see its performance, in that context in terms of other metrics.