Decision Boundary Calculation

In optional lab C1_W3_Lab06_Gradient_Descent_Soln, while plotting decision boundary, the following calculation were done to calculate x0 and x1:

x0 = -b_out/w_out[1]
x1 = -b_out/w_out[0]

Wasn’t x0 supposed to be: x0 = -b_out/w_out[0]?

Hello @Nipun_Goyal, thank you for letting us know! Yes I agree with you and the following codes should be the right ones:

x0 = -b_out/w_out[0]
x1 = -b_out/w_out[1]

I will report it to the team.

Awesome! Thanks for confirming!