Skip to content

Instantly share code, notes, and snippets.

@youssefHosni
Created September 2, 2023 00:17
Show Gist options
  • Save youssefHosni/eaf417c007e97a51387f5bdc1d39807b to your computer and use it in GitHub Desktop.
Save youssefHosni/eaf417c007e97a51387f5bdc1d39807b to your computer and use it in GitHub Desktop.
from sklearn.ensemble import BaggingRegressor
bagging = BaggingRegressor(DecisionTreeRegressor())
bagging.fit(X_train, y_train)
model.score(X_test,y_test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment