update perceptron_train.cc