I’ve been working on the first week assignment and, once i submit i get 0 points and an error saying
There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
name ‘series_valid’ is not defined
Any help is appreciated, thanks!
hi @Ammar_Anwar
please go through below links to debug your codes
Let me know if issue still persist
thanks for replying, I did the assignment thrice with fresh new copy even submitted my assignment after saving it at first submission it marked me below 80 but after clearing all my test it started to mark me 0 on the error of compiling
Did you go through the linked comments I shared where it is mentioned how each grade codes should be written.
As your grader output is pointing on implementing error, it is pointing although you have passed the test, the way you wrote codes were incorrect. For example using an incorrect function recall or hard_coding the path to a code recall. So refer each points in the two link shared to debug your codes.
Regards
DP
I did go through the linked comments try to solve the issue but was unable to find the solution.
Please DM me screenshots of codes by personal DM. click on my name and then message.
Don’t post any codes here.
Your moving average forecast and smooth_past series codes are incorrect. So refer both links shared here in my previous comment where it mentions how to write the correct code for both of these two incorrectly written codes.
I started to get mse error on diff_moving_avg check ur dm
share the error screenshot here and codes in the DM
Now your moving average forecast is correct. please post the error screenshot here you are mentioning you are getting for diff moving avg if you are still getting
already shared code in your dm
your issue is resolved as per your last reply in the DM, right?
I have a similar issue with the course although I am quite convinced the code is ok and unit tests are passed: Sequences, Time Series and Prediction (TF course 4, week 1) grading:
working with generated time series: Programming Assignment: Working with generated time series reports: "There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: name ‘time_valid’ is not defined.
I even tried to renew the notebook, fill in just first one or two tasks to prevent messing up with the whole notebook but still get 0 for all tasks. However, after many tries the grading error at least changed to: “Details:
‘NoneType’ object is not iterable”
Although, time_valid is defined as:
time_train, series_train, time_valid, series_valid = train_val_split(TIME, SERIES)
There are two links shared here in the post which will help you debug your codes.
also as you are posting first time, a good practice is to be considered to always create new topic rather than commenting on older threads to avoid confusion. So create a new thread and go through the link shared.