Package org.deeplearning4j.nn.api
Enum OptimizationAlgorithm
- java.lang.Object
-
- java.lang.Enum<OptimizationAlgorithm>
-
- org.deeplearning4j.nn.api.OptimizationAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<OptimizationAlgorithm>
public enum OptimizationAlgorithm extends Enum<OptimizationAlgorithm>
Optimization algorithm to use- Author:
- Adam Gibson
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONJUGATE_GRADIENT
LBFGS
LINE_GRADIENT_DESCENT
STOCHASTIC_GRADIENT_DESCENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OptimizationAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static OptimizationAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LINE_GRADIENT_DESCENT
public static final OptimizationAlgorithm LINE_GRADIENT_DESCENT
-
CONJUGATE_GRADIENT
public static final OptimizationAlgorithm CONJUGATE_GRADIENT
-
LBFGS
public static final OptimizationAlgorithm LBFGS
-
STOCHASTIC_GRADIENT_DESCENT
public static final OptimizationAlgorithm STOCHASTIC_GRADIENT_DESCENT
-
-
Method Detail
-
values
public static OptimizationAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OptimizationAlgorithm c : OptimizationAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OptimizationAlgorithm valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-