naive bayes module