Skip to content

Instantly share code, notes, and snippets.

@sagarhowal
Created December 6, 2017 10:58
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/60a908cbaa41f9bfc60c14cd67882b38 to your computer and use it in GitHub Desktop.
Save sagarhowal/60a908cbaa41f9bfc60c14cd67882b38 to your computer and use it in GitHub Desktop.
AdaBoost in Ensemble Learning
from sklearn.ensemble import AdaBoostClassifier
ada_clf = AdaBoostClassifier(
DecisionTreeClassifier(max_depth=1), n_estimators=200,
algorithm="SAMME.R", learning_rate=0.5, random_state=42)
ada_clf.fit(X_train, y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment