The mechanics of Na?ve Bayes