org.apache.mahout.classifier.naivebayes
Class StandardNaiveBayesClassifier

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.StandardNaiveBayesClassifier

public class StandardNaiveBayesClassifier
extends AbstractNaiveBayesClassifier

Class implementing the Naive Bayes Classifier Algorithm


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

Constructor Detail

StandardNaiveBayesClassifier

public StandardNaiveBayesClassifier(NaiveBayesModel model)
Method Detail

getScoreForLabelFeature

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

computeWeight

public static double computeWeight(double featureLabelWeight,
                                   double labelWeight,
                                   double alphaI,
                                   double numFeatures)


Copyright © 2008–2014 The Apache Software Foundation. All rights reserved.