C4W1 Working with Generated Time Series grading problem "time_valid" not defined

In your case, the problem is with this line in exercise 6:

# Perform the correct slicing
diff_moving_avg = ...

Use constants SPLIT_TIME and WINDOW_SIZE for slicing the array.

2 Likes