Created
December 6, 2017 10:58
-
-
Save sagarhowal/60a908cbaa41f9bfc60c14cd67882b38 to your computer and use it in GitHub Desktop.
AdaBoost in Ensemble Learning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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