Stuck on Week 3 practice lab: logistic regression

I am currently enrolled in “Supervised Machine Learning: Regression and Classification” by Andrew Ng, and I am having an issue with the final lab assignment of Week 3. I am getting 0% on the lab, and it is not showing any feedback on what I got wrong. I have attached a screenshot for reference. Can anyone please help me with this?

{mentor edit: image of code removed}

Please do not post your code on the forum. That’s not allowed by the Code of Conduct.

I have edited your post to remove the code.

Instead, please post a screen capture image of what you see when you run that cell, or the detailed feedback from the grader, or images of any error messages.

Note: At a glance I see no issues with your sigmoid() function.

What results did you get when you ran the tests in the following two cell?

Hello,

Sorry about that, this was my first time posting something here. I am not sure where I can see the feedback. Can you please help with it? Also, when I am submitting it, I am getting 0% and below I see “Cell #14. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘float’ and ‘NoneType’”)”

That’s the grader feedback I mentioned.

The most likely issue is that you have not completed all of the assignments in the notebook yet. You cannot grade a partially completed assignment.

The error specifically says you’re trying to use the += operator to add a float with a variable that is set to “None”.

I have completed all 6 exercises and submitted them, but it is giving me the same error with 0%. Please help

Have you perhaps renamed your notebook?

No, I haven’t. Can I send you a screenshot of it so you can tell me if my code was wrong? But what I don’t understand is that it is not grading the other exercises and just showing the error of “Cell #14. Can’t compile the student’s code. Error: NameError(“name ‘z_wb’ is not defined”)”

Kindly look for usage of z_wb. It seems you are using this variable on right side of any formula or equation, before actually defining this variable name & value in your code.
Is this variable name already exist inside provided source code or you have initiated it?

@Sri_Sudula, please check your personal messages for instructions.

To close out the thread:

The lab was completed successfully by referencing the “Hint” sections of the notebook.

Tip: Familiarity with Python programming will smooth your path of learning.