public class NaiveBayesClassifierFactory<L,F> extends java.lang.Object implements ClassifierFactory<L,F,NaiveBayesClassifier<L,F>>
Modifier and Type | Field and Description |
---|---|
static int |
CL |
static int |
JL |
static int |
UCL |
Constructor and Description |
---|
NaiveBayesClassifierFactory() |
NaiveBayesClassifierFactory(double alphaC,
double alphaF,
double sigma,
int prior,
int kind) |
Modifier and Type | Method and Description |
---|---|
NaiveBayesClassifier<L,F> |
trainClassifier(GeneralDataset<L,F> dataset) |
NaiveBayesClassifier<L,F> |
trainClassifier(GeneralDataset<L,F> examples,
java.util.Set<F> featureSet)
The examples are assumed to be a list of RFVDatum.
|
public static final int JL
public static final int CL
public static final int UCL
public NaiveBayesClassifierFactory()
public NaiveBayesClassifierFactory(double alphaC, double alphaF, double sigma, int prior, int kind)
public NaiveBayesClassifier<L,F> trainClassifier(GeneralDataset<L,F> examples, java.util.Set<F> featureSet)
public NaiveBayesClassifier<L,F> trainClassifier(GeneralDataset<L,F> dataset)
trainClassifier
in interface ClassifierFactory<L,F,NaiveBayesClassifier<L,F>>