Excercise 1 train_val_split fails with error ‘There was a problem compiling the code from your notebook, please check that you saved before submitting. Details: ‘NoneType’ object is not iterable’.
Code:
{mentor edit: code removed}
Two recommendations:
- Do not post your code - that is not allowed by the Code of Conduct.
- Do post a screen capture image that shows the complete error message or assert.
Bonus tip: Be careful that you do not try to grade a notebook file that has been renamed.
the error is train_val split or the submission grader provide that general error information to all grade functions?
you can rather post screenshot of the error or your grade output with show grader output than posting grade function codes as it is against community guidelines.
if that error information was in general for all grade functions, then refer the linked post to debug your codes
Hi @Deepti_Prasad ,
Good morning. I have attached the screenshot here. Although my unit tests pass the grades fail. I have duly saved the notebook too. I want to check my assignments one by one and hence submitted after finishing only a few.
image removed as it contains grade function codes and posting codes is considered violation of code of conduct. if a mentor wants to see your code, they will ask you to send by DM
you are recalling the train val split incorrectly, remember time and series are value of arrays in timestamps and series,so mentioning split data as time>= SPLIT TIME is incorrect.
You need to use the arguments time and series with Only SPLIT TIME to define the 4 train_val split data, usually used with : before and after SPLIT_TIME to define respective string.
Also please don’t post any part of grade function codes on public post. codes can be shared in DM, and discussion to address your code issues need to be done here in the public post you created. this is an usual way of learning in the community platform.
After you do corrections, you can send me the screenshot on how you did the correction by DM in case you are still facing grade failure.
Regards
DP
based on recent code share and explanation that you only wrote exercise 1 train val dataset codes and submit the assignment is the reason why you are failed your submission grader.
Please complete all the exercises and pass all the unittest and then only submit the assignment. Not all assignments are designated with #gradeuptohere.
Also avoid posting any grade functions codes on public post thread, it is against community guidelines.
Regards
DP