DOC Fixed Future Warnings by explicitly defining n_estimators = 100 in for the Regressor.
@@ -43,11 +43,13 @@ X_train, X_test, y_train, y_test = train_test_split(
X, y, train_size=400, test_size=200, random_state=4)
max_depth = 30
-regr_multirf = MultiOutputRegressor(RandomForestRegressor(max_depth=max_depth,
+regr_multirf = MultiOutputRegressor(RandomForestRegressor(n_estimators=100,
+ max_depth=max_depth,
random_state=0))
regr_multirf.fit(X_train, y_train)
-regr_rf = RandomForestRegressor(max_depth=max_depth, random_state=2)
+regr_rf = RandomForestRegressor(n_estimators=100, max_depth=max_depth,
+ random_state=2)
regr_rf.fit(X_train, y_train)
# Predict on new data
