perceptron loss spec