1. Learn
  2. /
  3. Courses
  4. /
  5. Machine Learning for Time Series Data in Python

Exercise

Visualizing predicted values

When dealing with time series data, it's useful to visualize model predictions on top of the "actual" values that are used to test the model.

In this exercise, after splitting the data (stored in the variables X and y) into training and test sets, you'll build a model and then visualize the model's predictions on top of the testing data in order to estimate the model's performance.

Instructions 1/2

undefined XP
    1
    2
  • Split the data (X and y) into training and test sets.
  • Use the training data to train the regression model.
  • Then use the testing data to generate predictions for the model.