Machine Learning, Data Science, Pogramming, Statistics, Python.
y_next_hat = model.predict(x_next.reshape(-1, 1)) x_next = np.arange(0,7,0.005) y_next = np.sin(x_next)*5000 fig = plt.figure(figsize=(10,5)) plt.plot(x_next, y_next, label="y=sin(x)") plt.plot(x_next, y_next_hat, label="Predicted") plt.xlabel("X") plt.ylabel("Y") plt.legend(loc="upper left")