perceptron and regression