bdt = Bagging Regressor(Decision Tree Regressor()).fit(X_train, y_train) bdt_predict = bdt.predict(X_test)