How to get the weight vector Quiz Question

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

I applied the gradient decent with learning rate 32 and maxEpochs= 1090
I am getting loss as 0.0003689748918339555
And the weight vector is

[-6.58509564 14.4237113 14.42503539 14.4233035 ]
No where close to options

Hey @chiragwxN you can’t apply linear regression gradient descent directly. But still if you wanted to apply it, than you need to use logisctic regression code and made these changes,

I have made this file you can check it here,

You will see -1,1,1,2 is the final answer.

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

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.