public static enum NaiveBayesAnnotator.Mode extends Enum<NaiveBayesAnnotator.Mode>
NaiveBayesAnnotator
.Enum Constant and Description |
---|
ALL
The probability of each class should be calculated, and the
annotations returned should contain every annotation with its
associated probability in decreasing order of probability.
|
MAXIMUM_LIKELIHOOD
Only the single most likely annotation will be returned.
|
Modifier and Type | Method and Description |
---|---|
protected abstract <ANNOTATION> |
getAnnotations(gov.sandia.cognition.learning.algorithm.bayes.VectorNaiveBayesCategorizer<ANNOTATION,org.openimaj.ml.annotation.bayes.NaiveBayesAnnotator.PDF> categorizer,
gov.sandia.cognition.math.matrix.Vector vec) |
static NaiveBayesAnnotator.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NaiveBayesAnnotator.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NaiveBayesAnnotator.Mode ALL
public static final NaiveBayesAnnotator.Mode MAXIMUM_LIKELIHOOD
public static NaiveBayesAnnotator.Mode[] values()
for (NaiveBayesAnnotator.Mode c : NaiveBayesAnnotator.Mode.values()) System.out.println(c);
public static NaiveBayesAnnotator.Mode 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 nullprotected abstract <ANNOTATION> List<ScoredAnnotation<ANNOTATION>> getAnnotations(gov.sandia.cognition.learning.algorithm.bayes.VectorNaiveBayesCategorizer<ANNOTATION,org.openimaj.ml.annotation.bayes.NaiveBayesAnnotator.PDF> categorizer, gov.sandia.cognition.math.matrix.Vector vec)