Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Differences between StandardNaiveBayesClassifier and ComplementaryNaiveBayesClassifier in mahout

Maybe my question is quite sophisticated, but I would like to know the main differences between StandardNaiveBayesClassifier and ComplementaryNaiveBayesClassifier algorithms in Mahout. Which one performs better on smaller amount of training data or it is data dependent issue? Which one is better for sentiment analysis? And some other aspecs...

Thank you in advance!

like image 766
elkoo Avatar asked Mar 18 '26 16:03

elkoo


2 Answers

Complement naive Bayes is an naive Bayes variant that tends to work better than the vanilla version when the classes in the training set are imbalanced. In short, it estimates feature probabilities for each class y based on the complement of y, i.e. on all other classes' samples, instead of on the training samples of class y itself.

like image 131
Fred Foo Avatar answered Mar 20 '26 18:03

Fred Foo


The Compliment Naive Bayes (CNB) classifier improves upon the weakness of the Naive Bayes classifier by estimating parameters from data in all sentiment classes except the one which we are evaluating for.

like image 37
Guna Sekaran Avatar answered Mar 20 '26 16:03

Guna Sekaran