Skip to content

Instantly share code, notes, and snippets.

@risenW
Last active July 17, 2019 08:12
Show Gist options
  • Save risenW/b2066ae4ff63b3db00bc3dad9f8c98de to your computer and use it in GitHub Desktop.
Save risenW/b2066ae4ff63b3db00bc3dad9f8c98de to your computer and use it in GitHub Desktop.
from sklearn.ensemble import BaggingRegressor
bgg_model = BaggingRegressor(et_model, n_estimators=20, random_state=2)
print("MAE Sccore: ", cross_validate(bgg_model, 10, X_train, y_train))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment