Class TrainingConfiguration

java.lang.Object
org.ojalgo.ann.TrainingConfiguration

final class TrainingConfiguration extends Object
  • Field Details

    • dropouts

      boolean dropouts
    • error

    • learningRate

      double learningRate
    • regularisationL1

      boolean regularisationL1
    • regularisationL1Factor

      double regularisationL1Factor
    • regularisationL2

      boolean regularisationL2
    • regularisationL2Factor

      double regularisationL2Factor
  • Constructor Details

    • TrainingConfiguration

      TrainingConfiguration()
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class 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

      DoubleUnaryOperator regularisation()