C1_W3_Logistic_Regression Ex 2


In the exercise 2 i wrote the code out of the 2 outputs i got one correct but one showed this rresult

Hi @Shubhanshu_Rao
Welcome to the community!

I think that you didn’t use the parameter that sent to you in the function compute cost so that the code of you isn’t generalize over all test cases so please make sure using this variables(X, y, w, b) instead of (X_train, y_train, test_w, test_b) when you implement the function compute cost

Cheers,
Abdelrahman