C4W1 Assignment last cell expected output

@AlexReevs

Here are some hints to fix mistakes in the notebook:

  1. Keep in mind that validation series is towards end of the dataset. So, it’s sufficient to take last few points in time:
# Perform the correct slicing
diff_moving_avg = ...
  1. In snippet below, you are expected to take elements from 1 year before SPLIT_TIME. The left endpoint should start before SPLIT_TIME and the right end point should be 1 year lesser than
    the actual length of past_series.
# Slice the whole SERIES to get the past values
past_series

Edit:
More hints based on your recent notebook:

Please follow these steps to refresh your workspace. Look for Click here for hints in the notebook (which is missing in your version).

2 Likes