average perceptron debugged