-
In offset = 300
plt.figure(figsize=(10, 7))
# Account for the test_window offset and index into test_labels to ensure correct plotting
plot_time_series(timesteps=X_test[-len(test_windows):], values=test_labels[:, 0], start=offset, label="Test_data")
plot_time_series(timesteps=X_test[-len(test_windows):], values=model_1_preds, start=offset, format="-", label="model_1_preds") I don't get where this |
Beta Was this translation helpful? Give feedback.
Answered by
mrdbourke
Jun 26, 2021
Replies: 1 comment 2 replies
-
Hey abhi, Check the parameters of the The # Account for the test_window offset and index into test_labels to ensure correct plotting
plot_time_series(timesteps=X_test[-len(test_windows):],
values=test_labels[:, 0],
start=offset, # 'offset' variable used here to make the plot start later in the series
label="Test_data") Try adjusting the |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mrdbourke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey abhi,
Check the parameters of the
plot_time_series()
function.The
start
parameter is used to start the plot at a certain index (an offset).Try adjusting the
offset
parameter and seeing how it changes the plot.