Need Help With Week 3 Assignment - Logistic Regression

Please I am constantly getting the error Cell #14. Can’t compile the student’s code. Error: TypeError(“unsupported operand type(s) for +=: ‘NoneType’ and ‘NoneType’”)
despite all the outputs matching correctly, I am going to fail without this support

Hi Alex, welcome to the community!

Please run all cells from the top, as variables can sometimes become stale in Jupyter notebooks. Running all cells from the beginning will ensure each variable is set correctly.

P.S. Please edit your post. Posting a solution code in a public topic is against the Community Forum Code of Conduct. It’s okay to share a stack trace in a public post and to send code to a mentor via direct message.

Hope this helps!

Note that you cannot grade your notebook before you complete all of the parts of the assignment.

Any “None” statements left in the notebook will cause the grader to crash.