Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created September 15, 2022 15:40
Show Gist options
  • Save Abhayparashar31/f50e587dd957fac2e27c014f895d4841 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/f50e587dd957fac2e27c014f895d4841 to your computer and use it in GitHub Desktop.
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import AdaBoostClassifier
dt = DecisionTreeClassifier(max_depth=2, random_state=0)
adc = AdaBoostClassifier(base_estimator=dt, n_estimators=7, learning_rate=0.1, random_state=0)
adc.fit(x_train, y_train)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment