Naive Bayes with ward clustering