Implementation of Logistic regression without using bias

I was trying to implement logistic regression without using bias as it is shown in the video but i am not able to do it.
here is link to my code https://github.com/shahianshu/Machine-learning-Algorithms/blob/master/Logistic%20Regression/Logistic%20Regression.ipynb

i am taking theta instead of w and making 3rd column of data matrix as 1 to represent the bias or theta0 value.
please tell me where i am doing wrong ?