update naive bayesian