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, numCategoriesclassify, classifyFull, classifyNoLink, classifyScalar, logLikelihoodpublic StandardNaiveBayesClassifier(NaiveBayesModel model)
public double getScoreForLabelFeature(int label,
int feature)
getScoreForLabelFeature in class AbstractNaiveBayesClassifierpublic static double computeWeight(double featureLabelWeight,
double labelWeight,
double alphaI,
double numFeatures)
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.