Modify perceptron