Calculate predictions for BernoulliNB.