Bernoulli naive Bayes