Ensemble Methods in Python
Román de las Heras
Data Scientist, Appodeal





from sklearn.ensemble import GradientBoostingClassifier
clf_gbm = GradientBoostingClassifier(
n_estimators=100,
learning_rate=0.1,
max_depth=3,
min_samples_split,
min_samples_leaf,
max_features
)
n_estimatorslearning_ratemax_depthmin_samples_splitmin_samples_leafmax_featuresfrom sklearn.ensemble import GradientBoostingRegressor
reg_gbm = GradientBoostingRegressor(
n_estimators=100,
learning_rate=0.1,
max_depth=3,
min_samples_split,
min_samples_leaf,
max_features
)
Ensemble Methods in Python