Update perceptron trainner