Difference in My perceptron and sklearn Perceptron
I coded the perceptron algorithm form scratch and compared the weights I obtained after training with the weights I obtained after training the sklearn perceptron model. I believe even the sklearn model initializes the weights and biases as a zero vector and I chose the learning rate eta0=1
to match my perceptron code. (Note: the bias in my code is the last term in the vector w_b
)