update naive bayes