i keep getting this feedback from the grader: (There was a problem compiling the code from your notebook. Details:
‘NoneType’ object has no attribute ‘shape’.). problem is it says that for all the exercises. i tried submitting the file with only exercise 1 solved but its still the same. opening a new notebook isnt helping either.
i filled in all the none, but now im getting this : There was a problem compiling the code from your notebook. Details:
‘dict’ object has no attribute ‘shape’
That error message means you are somewhere writing x.shape
but x
does not contain a numpy array (which could deliver its shape) but is actually a Python dict (which cannot).
You can test the type of some x
by printing it out:
print(f"type is {type(x)}")
Go slow, check everything in detail.
1 Like
In this course, you cannot submit a partially-completed notebook.
If you “Kernel → Restart & Clear all output”, then use “Cell->Run All”, does your code give all of the expected results, and pass all of the in-notebook tests, and not throw any errors or asserts?