public static enum NaiveBayes.Model extends 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.
|
Modifier and Type | Method and Description |
---|---|
static NaiveBayes.Model |
valueOf(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 NaiveBayes.Model[] values()
for (NaiveBayes.Model c : NaiveBayes.Model.values()) System.out.println(c);
public static NaiveBayes.Model valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.