public static enum DiscreteNaiveBayes.Model extends java.lang.Enum<DiscreteNaiveBayes.Model>
Enum Constant and Description |
---|
BERNOULLI
The document Bernoulli model generates an indicator for each
term of the vocabulary, either indicating presence of the term
in the document or indicating absence.
|
CNB
Complement Naive Bayes.
|
MULTINOMIAL
The document multinomial model generates one term from the
vocabulary in each position of the document.
|
POLYAURN
The document Polya Urn model is similar to MULTINOMIAL but
different in the conditional probability update during learning.
|
TWCNB
Transformed Weight-normalized Complement Naive Bayes.
|
WCNB
Weight-normalized Complement Naive Bayes.
|
Modifier and Type | Method and Description |
---|---|
static DiscreteNaiveBayes.Model |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DiscreteNaiveBayes.Model[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscreteNaiveBayes.Model MULTINOMIAL
public static final DiscreteNaiveBayes.Model BERNOULLI
public static final DiscreteNaiveBayes.Model POLYAURN
public static final DiscreteNaiveBayes.Model CNB
public static final DiscreteNaiveBayes.Model WCNB
public static final DiscreteNaiveBayes.Model TWCNB
public static DiscreteNaiveBayes.Model[] values()
for (DiscreteNaiveBayes.Model c : DiscreteNaiveBayes.Model.values()) System.out.println(c);
public static DiscreteNaiveBayes.Model valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null