Package org.ojalgo.ann
Enum Class ArtificialNeuralNetwork.Error
- All Implemented Interfaces:
Serializable
,Comparable<ArtificialNeuralNetwork.Error>
,Constable
,BiFunction<Double,
,Double, Double> BinaryOperator<Double>
,DoubleBinaryOperator
,BasicFunction
,BinaryFunction<Double>
,PrimitiveFunction.Binary
- Enclosing class:
ArtificialNeuralNetwork
public static enum ArtificialNeuralNetwork.Error
extends Enum<ArtificialNeuralNetwork.Error>
implements PrimitiveFunction.Binary
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction
BasicFunction.Differentiable<N extends Comparable<N>,
F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>, F extends BasicFunction>, BasicFunction.PlainUnary<T, R> Nested classes/interfaces inherited from interface org.ojalgo.function.BinaryFunction
BinaryFunction.FixedFirst<N extends Comparable<N>>, BinaryFunction.FixedSecond<N extends Comparable<N>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCurrently this can only be used in combination withArtificialNeuralNetwork.Activator.SOFTMAX
in the final layer. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PrimitiveFunction.Binary
private final PrimitiveFunction.Binary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Error
(PrimitiveFunction.Binary function, PrimitiveFunction.Binary derivative) -
Method Summary
Modifier and TypeMethodDescription(package private) PrimitiveFunction.Binary
double
invoke
(double target, double current) double
Returns the enum constant of this class with the specified name.static ArtificialNeuralNetwork.Error[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface java.util.function.BiFunction
andThen
Methods inherited from interface org.ojalgo.function.BinaryFunction
andThen, apply, applyAsDouble, by, by, first, first, invoke, invoke, invoke, invoke, invoke, second, second
Methods inherited from interface org.ojalgo.function.PrimitiveFunction.Binary
invoke, invoke
-
Enum Constant Details
-
CROSS_ENTROPY
Currently this can only be used in combination withArtificialNeuralNetwork.Activator.SOFTMAX
in the final layer. All other usage will give incorrect network training. -
HALF_SQUARED_DIFFERENCE
-
-
Field Details
-
myDerivative
-
myFunction
-
-
Constructor Details
-
Error
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
invoke
-
invoke
public double invoke(double target, double current) - Specified by:
invoke
in interfaceBinaryFunction<Double>
-
getDerivative
PrimitiveFunction.Binary getDerivative()
-