ERROR There was a problem compiling the code from your notebook. Details: 'NoneType' object has no attribute 'shape'

I got the expected output of each cell but when i submit the assignment, the Grader gives me 0 marks with this
There was a problem compiling the code from your notebook. Details:
‘NoneType’ object has no attribute ‘shape’

It means there is None in your notebook which you were supposed to replace with the correct variable.

Hello @Bilal_Ahmad3!

As explained by @sayfkhanegr , the objective is to implement some functions in the assignment. In the general case, you should replace the “None” with the necessary code, keeping “None” only when it is essential or when there is an explanatory comment. The first few times I did a lab like this, I also let some points pass without modification. Therefore, it is important to review the code and ensure that all functions are properly implemented.

Hello @Bilal_Ahmad3 ,

If your problem is not yet solved, you can send me your notebook via dm such that I can check where it went wrong. By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here, under the topic you created.

With regards,
Nilosree Sengupta