Update NaiveBayes