Class RandomNormal

java.lang.Object
engine.neural.initializers.RandomNormal
All Implemented Interfaces:
Initializer, Reconstructible

public class RandomNormal extends Object implements Initializer
  • Field Details

    • rand

      private final Random rand
    • mean

      private final float mean
    • stdDev

      private final float stdDev
  • Constructor Details

    • RandomNormal

      public RandomNormal()
    • RandomNormal

      public RandomNormal(float mean, float stdDev)
  • Method Details

    • initialize

      public void initialize(Matrix weights)
      Specified by:
      initialize in interface Initializer
    • getClassInfo

      public String getClassInfo()
      Description copied from interface: Reconstructible
      This interface is used to save objects as strings and to reconstruct them later
      Specified by:
      getClassInfo in interface Reconstructible
      Returns:
      a String in the utilizing getClass().getName() and then all following variables should be formatted with a new line before the raw value. Example: "return this.getClass().getName() + "\n" + this.param1 + "\n" + this.param2;"