Documentation of 'org.encog.neural.networks.training.pso.NeuralPSOWorker' Java class
NeuralPSOWorker
org.encog.neural.networks.training.pso

Class NeuralPSOWorker

  • All Implemented Interfaces:
    EngineTask


    public class NeuralPSOWorker
    extends java.lang.Object
    implements EngineTask
    PSO multi-treaded worker. It allows PSO to offload all of the individual particle calculations to a separate thread. Contributed by: Geoffroy Noel https://github.com/goffer-looney
    • Constructor Summary

      Constructors 
      Constructor and Description
      NeuralPSOWorker(NeuralPSO neuralPSO, int particleIndex, boolean init)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void run()
      Update the particle velocity, position and personal best.
      • Methods inherited from class java.lang.Object

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

      • NeuralPSOWorker

        public NeuralPSOWorker(NeuralPSO neuralPSO,
                               int particleIndex,
                               boolean init)
        Constructor.
        Parameters:
        neuralPSO - the training algorithm
        particleIndex - the index of the particle in the swarm
        init - true for an initialisation iteration
    • Method Detail

      • run

        public final void run()
        Update the particle velocity, position and personal best.
        Specified by:
        run in interface EngineTask

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.