Week 2 Logistic Regression Assignment, Ex 8. Wrong values for d

Hy, after all the tests were passed, in Exercise 8, it throws the following error:

Some test I’ve performed are taking the evaluation dataset that runs into the model_test function, to manually check if my output [[1. 1. 1.]] was wrong, compared to the expected output [[1. 1. 0.]]. These are the results:


I am lost here. Several days trying to find out the error… please help. Thanks.

2 Likes

I just found the error… In the predict function, I was passing sigmoid(X), while I should be passing sigmoid(np.dot(w.T, X) + b).

Just letting you know :wink:

3 Likes