Issue with C1_W3_Logistic_Regression assignment in course Supervised Machine Learning: Regression and Classification

I am currently enrolled in the Coursera Machine Learning Specialization by Andrew Ng. In the course titled “Supervised Machine Learning: Regression and Classification”, I’ve encountered an issue with the final lab assignment of Week 3, specifically in Exercise 4 of the C1_W3_Logistic_Regression notebook.

In the section where I am instructed to compute the training set accuracy, the code cell is locked and cannot be edited. When I attempt to run it as is, it throws an error, preventing me from completing the assignment and resulting in a score of zero.

The error occurs in exercise 4, second part where the task is to compute the accuracy of the training set. The info before the cell says “Now let’s use this to compute the accuracy on the training set”. I am unable to make any changes to this coding cell, and when I run it in its natural state it gives an error. This is leading to me getting a 0 in the assignment. "

Its better to post a screenshot of whatever error you get when trying to run that cell, or the screenshot that you cannot run it at all!

Normally if a problem happens with the notebook in the Lab you would perform Kernel → Restart and then run all cells from top again!

When a locked cell gives an error, it almost always means that the cell is calling a graded function that you have updated, and that code does not work correctly.

The locked cells don’t have errors - they’re used for testing your code (or as gent.spah noted, they’re used for setting up the workspace).