working naive bayes metrics collection