Perceptron, minor change to niave bayes