The first weight in W is missing

Consider the following training set:Dataset
We are interested in finding the plane which divides the input space into two classes. Starting with the weight vector W = [,0,-1,2] apply the perceptron algorithm by going over the points in the following order [n1,p1,p2,p3,p4,p5,p6,p7]. If needed repeat the same order until convergence. After convergence what is the value of the weight vector

[1,1,2,3]

[-1,1,1,2]

[-3,-2,-1,-1]

[-2,-1,-1,1]

Hey @debjanihome, the first weight is -1, so W =[-1,0,-1,2].
You need to implement the small code to get the results, since single perceptron network is same as logistic regression, you can make changes in that to look like this,

https://colab.research.google.com/drive/17knBFvtPcvAZFfPAUiY5He2x_bgUngpz
Ans is there itself in ipynb.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush: