train for naive bayes

train for naive bayes, gaussian model