Perceptron : Where It All Started

Implementing the Perceptron Perceptron is one the most elegant yet easy to implement learning algorithms. Though most packages/libraries provide implementation for this algorithm, let us try our hand on it as well. The following python function helps in updating the weight vector : # update weights of the perceptrondef update_weights(row,weights_array=[1,0,0],lr=0.001):# get predicted label using current weight … Read more