July 2017
Intermediate to advanced
382 pages
9h 13m
English
For example, we can build a boosting classifier from a collection of 10 decision trees as follows:
In [11]: from sklearn.ensemble import GradientBoostingClassifier... boost_class = GradientBoostingClassifier(n_estimators=10,... random_state=3)
These classifiers support both binary and multiclass classification.
Similar to the BaggingClassifier class, the GradientBoostingClassifier class provides a number of options to customize the ensemble:
Read now
Unlock full access