public enum TrainingAlgorithm extends Enum<TrainingAlgorithm>
| Enum Constant and Description |
|---|
MAXENT_QN
Uses the maxent algorithm with L-BFGFS.
|
PERCEPTRON
Uses the perceptron algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
static TrainingAlgorithm |
fromValue(String algorithm)
Gets the
TrainingAlgorithm from a string value or
throws an IllegalArgumentException if the algorithm
string value is not a valid algorithm. |
String |
getAlgorithm()
Gets the algorithm.
|
static TrainingAlgorithm |
getDefaultAlgorithm()
Gets the default
TrainingAlgorithm. |
String |
getName()
Gets the name of the algorithm.
|
String |
toString() |
static TrainingAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrainingAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrainingAlgorithm MAXENT_QN
public static final TrainingAlgorithm PERCEPTRON
public static TrainingAlgorithm[] values()
for (TrainingAlgorithm c : TrainingAlgorithm.values()) System.out.println(c);
public static TrainingAlgorithm 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 nullpublic String getAlgorithm()
public String getName()
public static TrainingAlgorithm getDefaultAlgorithm()
TrainingAlgorithm.TrainingAlgorithm.public String toString()
toString in class Enum<TrainingAlgorithm>public static TrainingAlgorithm fromValue(String algorithm)
TrainingAlgorithm from a string value or
throws an IllegalArgumentException if the algorithm
string value is not a valid algorithm.algorithm - The algorithm.TrainingAlgorithm.Copyright © 2018. All rights reserved.