Not getting correct theta and bias in Logistic Regression Implementation

My code—>https://ide.codingblocks.com/s/150270

Hi, your code seems fine. Please plot and visualize the line plotted. If your line is plotted corrected then your theta’s are correct. PLease note you may not get the same theta’s as that in the video because we are using np.random.multivariate() so the data points are generated randomly and thus may differ from that in the video. However if the line plotted using these theta’s is correct then you can move on.


I am getting this

The line using the thetas you plotted seems pretty good and it is a nice classfier.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.