LECT07 - Implementation of perceptron algorithm