implement bayes and perceptron