Rewrite  Naivebayes Classifier
update naivebayes test