perceptron for PR