|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<LearningPrinciple>
de.jstacs.classifier.scoringFunctionBased.gendismix.LearningPrinciple
public enum LearningPrinciple
This enum can be used to obtain the weights for well-known optimization tasks.
LogGenDisMixFunction| Enum Constant Summary | |
|---|---|
MAP
Maximum a posteriori. |
|
MCL
Maximum conditional likelihood. |
|
ML
Maximum Likelihood. |
|
MSP
Maximum supervised posterior. |
|
| Field Summary | |
|---|---|
static int |
CONDITIONAL_LIKELIHOOD_INDEX
This constant is the array index of the weighting factor for the conditional likelihood. |
static int |
LIKELIHOOD_INDEX
This constant is the array index of the weighting factor for the likelihood. |
static int |
PRIOR_INDEX
This constant is the array index of the weighting factor for the prior. |
| Method Summary | |
|---|---|
static double[] |
checkWeights(double[] weights)
This method checks the values of the weights array. |
static double[] |
getBeta(LearningPrinciple key)
This method returns the standard weights for a predefined key. |
static LearningPrinciple |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LearningPrinciple[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final LearningPrinciple ML
public static final LearningPrinciple MAP
public static final LearningPrinciple MCL
public static final LearningPrinciple MSP
| Field Detail |
|---|
public static final int CONDITIONAL_LIKELIHOOD_INDEX
getBeta(LearningPrinciple),
Constant Field Valuespublic static final int LIKELIHOOD_INDEX
getBeta(LearningPrinciple),
Constant Field Valuespublic static final int PRIOR_INDEX
getBeta(LearningPrinciple),
Constant Field Values| Method Detail |
|---|
public static LearningPrinciple[] values()
for (LearningPrinciple c : LearningPrinciple.values()) System.out.println(c);
public static LearningPrinciple valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic static double[] getBeta(LearningPrinciple key)
key - the key
ML,
MAP,
MCL,
MSP
public static double[] checkWeights(double[] weights)
throws IllegalArgumentException
weights array. If everything is okay it returns a deep copy
of the array, otherwise it throws an exception
weights - and array of length 3 with non-negative entries that sum to 1
IllegalArgumentException - if the weights array is not correct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||