adding average perceptron train