In the Week 3 Optional Lab: Gradient Descent for Logistic Regression, when plotting the results of gradient descent, the line of code to plot the decision boundary is wrong:
The current code is consistent with your correct understanding about how to derive point A and point B, only that ax.plot accepts two arrays, where the first array is the x coordinates of point A and point B and the second array contains the y coordinates of the two points. We don’t give it the xy-coordinate of point A as the first argument and then the xy-coordinate of point B as the second argument.