- java.lang.Object
-
- org.ojalgo.ann.TrainingConfiguration
-
final class TrainingConfiguration extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleandropouts(package private) ArtificialNeuralNetwork.Errorerror(package private) doublelearningRate(package private) booleanregularisationL1(package private) doubleregularisationL1Factor(package private) booleanregularisationL2(package private) doubleregularisationL2Factor
-
Constructor Summary
Constructors Constructor Description TrainingConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private doubledoL1(double current)private doubledoL2(double current)booleanequals(java.lang.Object obj)inthashCode()(package private) doubleprobabilityDidKeepInput(int layer)Used to scale the weights after training with dropouts, and also to adjut the learning rate(package private) doubleprobabilityWillKeepOutput(int layer, int depth)Used to modify the activation function – with this probabilty it will be used as is, for the other parts the output is 0.(package private) java.util.function.DoubleUnaryOperatorregularisation()
-
-
-
Field Detail
-
dropouts
boolean dropouts
-
error
ArtificialNeuralNetwork.Error error
-
learningRate
double learningRate
-
regularisationL1
boolean regularisationL1
-
regularisationL1Factor
double regularisationL1Factor
-
regularisationL2
boolean regularisationL2
-
regularisationL2Factor
double regularisationL2Factor
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
doL1
private double doL1(double current)
-
doL2
private double doL2(double current)
-
probabilityDidKeepInput
double probabilityDidKeepInput(int layer)
Used to scale the weights after training with dropouts, and also to adjut the learning rate- Parameters:
layer-- Returns:
- The probabilityToKeep (as in not drop) the input nodes of this layer
-
probabilityWillKeepOutput
double probabilityWillKeepOutput(int layer, int depth)Used to modify the activation function – with this probabilty it will be used as is, for the other parts the output is 0.- Parameters:
layer-depth-- Returns:
-
regularisation
java.util.function.DoubleUnaryOperator regularisation()
-
-