Skip to content

Instantly share code, notes, and snippets.

@youssefHosni
Created September 2, 2023 00:16
Show Gist options
  • Save youssefHosni/7846d9d564b28436d98bd4d6a7f01249 to your computer and use it in GitHub Desktop.
Save youssefHosni/7846d9d564b28436d98bd4d6a7f01249 to your computer and use it in GitHub Desktop.
from sklearn.ensemble import BaggingClassifier
from sklearn.tree import DecisionTreeClassifier
bagging = BaggingClassifier(base_estimator=DecisionTreeClassifier(),n_estimators=10, max_samples=0.5, max_features=0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment