Answers for "RandomForestRegressor (n_estimators = 20)"

4

sklearn random forest regressor

from sklearn.ensemble import RandomForestRegressor


clf = RandomForestRegressor(max_depth=2, random_state=0)

clf.fit(X, y)

print(clf.predict([[0, 0, 0, 0]]))
Posted by: Guest on November-26-2020

Code answers related to "RandomForestRegressor (n_estimators = 20)"

Python Answers by Framework

Browse Popular Code Answers by Language