Documentation of 'org.encog.neural.networks.training.propagation.GradientWorker' Java class
GradientWorker
org.encog.neural.networks.training.propagation

Class GradientWorker

  • All Implemented Interfaces:
    EngineTask


    public class GradientWorker
    extends java.lang.Object
    implements EngineTask
    Worker class for the mulithreaded training of flat networks.
    • Constructor Detail

      • GradientWorker

        public GradientWorker(FlatNetwork theNetwork,
                              GradientWorkerOwner theOwner,
                              MLDataSet theTraining,
                              int theLow,
                              int theHigh,
                              double[] flatSpot,
                              ErrorFunction ef)
        Construct a gradient worker.
        Parameters:
        theNetwork - The network to train.
        theOwner - The owner that is doing the training.
        theTraining - The training data.
        theLow - The low index to use in the training data.
        theHigh - The high index to use in the training data.
        flatSpot - The flatspot additions for each layer
        ef - Error function
    • Method Detail

      • getNetwork

        public FlatNetwork getNetwork()
        Returns:
        The network being processed.
      • getWeights

        public double[] getWeights()
        Returns:
        The weights for this network.
      • process

        public void process(MLDataPair pair)
        Process one training set element.
        Parameters:
        pair - the training data information
      • run

        public final void run()
        Perform the gradient calculation for the specified index range.
        Specified by:
        run in interface EngineTask
      • run

        public final void run(int index)
      • getGradients

        public double[] getGradients()
        Returns:
        the gradients
      • calculateRegularizationPenalty

        public void calculateRegularizationPenalty(double[] l)
      • layerRegularizationPenalty

        public void layerRegularizationPenalty(int fromLayer,
                                               double[] l)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.