org.apache.mahout.classifier.naivebayes
Class ComplementaryNaiveBayesClassifier

java.lang.Object
  extended by org.apache.mahout.classifier.AbstractVectorClassifier
      extended by org.apache.mahout.classifier.naivebayes.AbstractNaiveBayesClassifier
          extended by org.apache.mahout.classifier.naivebayes.ComplementaryNaiveBayesClassifier

public class ComplementaryNaiveBayesClassifier
extends AbstractNaiveBayesClassifier

Class implementing the Naive Bayes Classifier Algorithm


Constructor Summary
ComplementaryNaiveBayesClassifier(NaiveBayesModel model)
           
 
Method Summary
 double getScoreForLabelFeature(int label, int feature)
           
 
Methods inherited from class org.apache.mahout.classifier.naivebayes.AbstractNaiveBayesClassifier
classify, classifyScalar, getModel, getScoreForLabelInstance, numCategories
 
Methods inherited from class org.apache.mahout.classifier.AbstractVectorClassifier
classify, classifyFull, classifyFull, classifyFull, classifyNoLink, classifyScalar, logLikelihood
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplementaryNaiveBayesClassifier

public ComplementaryNaiveBayesClassifier(NaiveBayesModel model)
Method Detail

getScoreForLabelFeature

public double getScoreForLabelFeature(int label,
                                      int feature)
Specified by:
getScoreForLabelFeature in class AbstractNaiveBayesClassifier


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.