java.lang.Object
com.jml.neural_network.layers.initilizers.Zeros
All Implemented Interfaces:
Initializer

public class Zeros extends Object implements Initializer
layer parameter initializer to produce zeros.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a Zeros initializer.
  • Method Summary

    Modifier and Type
    Method
    Description
    linalg.Matrix
    init​(int m, int n)
    Initialized values of a weight/bias matrix.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Zeros

      public Zeros()
      Creates a Zeros initializer.
  • Method Details

    • init

      public linalg.Matrix init(int m, int n)
      Initialized values of a weight/bias matrix.
      Specified by:
      init in interface Initializer
      Parameters:
      m - Number of rows in the matrix.
      n - Number of columns in the matrix.
      Returns:
      A Matrix initialized with values from the distribution specified by this initializer.