A naive bayes classifier with added category impact training