Documentation of 'org.encog.mathutil.randomize.XaiverRandomizer' Java class
XaiverRandomizer
org.encog.mathutil.randomize

Class XaiverRandomizer

  • All Implemented Interfaces:
    Randomizer


    public class XaiverRandomizer
    extends java.lang.Object
    implements Randomizer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      GenerateRandom getRandom() 
      void randomize(BasicNetwork network, int fromLayer)
      Randomize one level of a neural network.
      double randomize(double d)
      Generate a random number.
      void randomize(double[] d)
      Randomize the array based on an array, modify the array.
      void randomize(double[][] d)
      Randomize the 2d array based on an array, modify the array.
      void randomize(double[] d, int begin, int size)
      Randomize an array.
      void randomize(Matrix m)
      Randomize the matrix based on an array, modify the array.
      void randomize(MLMethod method)
      Randomize the synapses and biases in the basic network based on an array, modify the array.
      void setRandom(GenerateRandom theRandom)
      Explicitly set the Random source
      • Methods inherited from class java.lang.Object

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

      • XaiverRandomizer

        public XaiverRandomizer()
      • XaiverRandomizer

        public XaiverRandomizer(long seed)
    • Method Detail

      • randomize

        public double randomize(double d)
        Generate a random number.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        d - The input value, not used.
        Returns:
        The random number.
      • randomize

        public void randomize(BasicNetwork network,
                              int fromLayer)
        Randomize one level of a neural network.
        Parameters:
        network - The network to randomize
        fromLayer - The from level to randomize.
      • randomize

        public void randomize(MLMethod method)
        Randomize the synapses and biases in the basic network based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        method - A network to randomize.
      • randomize

        public void randomize(double[] d)
        Description copied from interface: Randomizer
        Randomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        d - An array to randomize.
      • randomize

        public void randomize(double[][] d)
        Description copied from interface: Randomizer
        Randomize the 2d array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        d - An array to randomize.
      • randomize

        public void randomize(Matrix m)
        Description copied from interface: Randomizer
        Randomize the matrix based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        m - A matrix to randomize.
      • randomize

        public void randomize(double[] d,
                              int begin,
                              int size)
        Description copied from interface: Randomizer
        Randomize an array.
        Specified by:
        randomize in interface Randomizer
        Parameters:
        d - The array to randomize.
        begin - The beginning element.
        size - The size of the array.
      • setRandom

        public void setRandom(GenerateRandom theRandom)
        Description copied from interface: Randomizer
        Explicitly set the Random source
        Specified by:
        setRandom in interface Randomizer
        Parameters:
        theRandom - Random number generator.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.