Tune parameters of the bayes-classifier.