fixed repeated averaging of perceptrons while training