Good Day,
In the “# Compute evaluation metrics” and accompanying " Unit test cells, I am getting an error
“Failed test case: diff_moving_avg_plus_smooth_past”
This is the only cell that has an Error in assignment - all other output and unit tests pass as expected,
I submitted the assignment for grading, to see if the other cells would pass, however - all cells failed (retuned with 0/10 points), citing the following :
There was a problem compiling the code from your notebook, please check that you saved before submitting. Details:
unsupported operand type(s) for -: ‘int’ and ‘NoneType’
Any help appreciated!
hi @Joseph_Porrovecchio
A test cell failing but previously passed doesn’t mean your codes are right as you can see your previous two grade cells have failed which could be either
- you have hard-coded the path to your return function
- you have use global variables instead of recalled call arguments.
- You have edited the grade cells.
- Your test cell results also indicates the series value is not correct. please make you have read carefully and have not used incorrect operand. that error is indicating you have used an incorrect datatype, probably either used a float value instead of ‘int’ value and Whenever you see an error that include ‘NoneType’ that means that you have an operand or an object that is None when you were expecting something else.
Regards
DP
2 Likes
Thank you very much DP!
I found the problem after a more carefull look, I has mistakenly added “… + diff_moving_avg” to my smooth_past_series in “Exercise 8: smooth_past_series”.
1 Like
happy to know you could debug yourself!!!
Great learner!!
Keep learning Joseph
Regards
DP