Machine Learning, Data Science, Pogramming, Statistics, Python.
y_test = train_test_split(x, y, test_size=0.33, random_state=10) forest_reg = RandomForestRegressor(n_estimators=1, random_state=10) forest_reg.fit(x_train.reshape(-1, 1), y) y_hat = forest_reg.predict(x_test.reshape(-1, 1)) fig = plt.figure(figsize=(10,5)) plt.scatter(x_test, y_test,