prelimiary naive bayes