public class StandardNaiveBayesClassifier extends AbstractNaiveBayesClassifier
MIN_LOG_LIKELIHOOD
Constructor and Description |
---|
StandardNaiveBayesClassifier(NaiveBayesModel model) |
Modifier and Type | Method and Description |
---|---|
static double |
computeWeight(double featureLabelWeight,
double labelWeight,
double alphaI,
double numFeatures) |
double |
getScoreForLabelFeature(int label,
int feature) |
classify, classifyFull, classifyFull, classifyScalar, getModel, getScoreForLabelInstance, numCategories
classify, classifyFull, classifyNoLink, classifyScalar, logLikelihood
public StandardNaiveBayesClassifier(NaiveBayesModel model)
public double getScoreForLabelFeature(int label, int feature)
getScoreForLabelFeature
in class AbstractNaiveBayesClassifier
public static double computeWeight(double featureLabelWeight, double labelWeight, double alphaI, double numFeatures)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.