Machine Learning, Data Science, Pogramming, Statistics, Python.
to make sure there is no significant overfitting. However, if we look into the future prediction we can see something interesting. x_next = np.arange(0,7,0.005) y_next = np.sin(x_next)*5000 y_next_hat = forest_reg.predict(x_next.reshape(-1, 1)) fig = plt.figure(figsize=(10,5)) plt.plot(x_next,