public static enum NaiveBayes.Model extends java.lang.Enum<NaiveBayes.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.
|
GENERAL
The general model is for a set of independent variables
with any kind of underlying distributions.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static NaiveBayes.Model |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NaiveBayes.Model[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NaiveBayes.Model GENERAL
public static final NaiveBayes.Model MULTINOMIAL
public static final NaiveBayes.Model BERNOULLI
public static final NaiveBayes.Model POLYAURN
public static NaiveBayes.Model[] values()
for (NaiveBayes.Model c : NaiveBayes.Model.values()) System.out.println(c);
public static NaiveBayes.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