C1_W3_Assignment issue

My code is passing unit tests but still getting 0 as score. The feedback that I am getting is ‘There was a problem compiling the code from your notebook. Details:
‘NoneType’ object is not callable’.
Tried multiple times over an hour. Is it an issue in my code or a bug in the Coursera platform?

2 Likes

It is generally an issue with your code.

Won’t the unit tests fail in that case?

I have removed your code because it should not be published. The unit tests may pass but there might be other unit tests that are not shown here and you can see them in File->Open (somewhere there should be the py file of unit tests. But I am not sure that the problem is in this part either, maybe there is another part of the assignment you are not doing right.

means that you are not producing the right type of output.

This was the 1st exercise. Cannot see any apparent error.

1 Like

Is there a way to start afresh i.e. use the default files again? Maybe I deleted something by mistake which is causing this.

1 Like

Yeah have a look on this page, in particular Refresh your Lab Workspace section.

https://www.coursera.support/s/article/360044758731-Solving-common-issues-with-Coursera-Labs?language=en_US

Thanks. Now got a new error:
There was a problem compiling the code from your notebook. Details:
‘NoneType’ object has no attribute ‘shape’

Can someone check the assignment to check if the grader is fine?

I have used X.shape and np.shape() where X is the matrix and it is just 3 lines of code.

2 Likes

Any help here? I have the same problem

1 Like

I have the exact same issue

1 Like

I solved it by using # grade-up-to-here after each part answer.

1 Like

how? could you please provide more details

I’ve got the same problem: Exercises 3, 4, 5 returned the exact output as expected, but the unittest failed due to “Assertion Error”. How can I fix it?

Same thing here… I have been trying to find the issue for over 2 hours now… no success so far.

I have the same issue. In addition, the refresh method for Labs doesn’t work so I cannot start a fresh notebook. Could someone share a way forward? Thanks

@Thi_Bich_Lien_Nguyen Is your issue fixed or are you still having the same issue?

1 Like

@gccadori Is your issue fixed? or are you still having the same issue?

2 Likes

@Lawrence_Aqui This thread is so long that I am not sure what you mean by “the same issue”. Can you please paste a print screen of the error shown? Please note that we are speaking here about the Math for machine learning - Course 1 : Linear Algebra- Week 3 Assignment.

1 Like

Yes. I was able to solve the problem. Thanks for checking with me.

1 Like

Excellent news. I am glad you got it fixed.

1 Like