Course: Sequences, Time Series and Prediction, Week 1, Exercise 1, problem with unittests

Week 1, Exercise 1 on the programming assignment
The unittests gives me a “All Passed” on the exercise when I give what I believe is an incorrect response to Exercise 1. For example, if I code series_valid = TIME[…code omitted], it produces graphs that are very different from the expected output graphs, but the unittests grader tells me “All tests passed”. What I believe is the correct response, series_valid=SERIES[…code omitted], and what works on my local computer, is scored by the unittests grader as “Failed”. I think this problem also accounts for why my last exercise in the week 1 programming course is marked as “Failed”, even though it runs fine and checks out fine on my local computer. All the other exercises run without problems. I have refreshed the notebook a few times…I don’t know if that accounts for the problem. Please advise.

AWD

Hi Albert! Can you try using the function parameters time and series. As mentioned in the tips at the top, that is usually the expected inputs by the grader. Using the global variables SERIES and TIME might be causing the bug. Please keep this in mind in other exercises as well. Hope this helps! Thanks!