Skip to content

Instantly share code, notes, and snippets.

@sagarhowal
Created December 6, 2017 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sagarhowal/95600ec9dc9c88b41fc85ec5390b1031 to your computer and use it in GitHub Desktop.
Save sagarhowal/95600ec9dc9c88b41fc85ec5390b1031 to your computer and use it in GitHub Desktop.
Gradient Boosting in Ensemble Learning
from sklearn.ensemble import GradientBoostingRegressor
gbrt = GradientBoostingRegressor(max_depth=2, n_estimators=3, learning_rate=1.0, random_state=42)
gbrt.fit(X, y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment