C5-W3-A2 Obscure grader output


I have completed the Trigger word detection assignment. It was very interesting.
However I only reached 80/100 of the final grade.
It seems that the modelf function is at fault :

Code Cell UNQ_C5: Unexpected error (AttributeError(“‘NoneType’ object has no attribute ‘op’”)) occurred during function check. We expected function modelf to return type <class ‘bool’>. Please check that this function is defined properly.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors.

Which is very strange, the model is very simple and it is working correctly with the Dev set and other tests, any idea of what could be wrong ?

Best regards

Please post back your results from the unit test and model summary (the cells immediately below the modelf() code.

Before you do that, restart the kernel and run all of the notebook cells again. Then post the results.

1 Like

Thanks for the reply, I restarted the kernel and re-run all the notebook, it gives 100/100 now