org.encog.neural.networks.training.pso
Class NeuralPSOWorker
- java.lang.Object
-
- org.encog.neural.networks.training.pso.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 voidrun()Update the particle velocity, position and personal best.
-
-
-
Constructor Detail
-
NeuralPSOWorker
public NeuralPSOWorker(NeuralPSO neuralPSO, int particleIndex, boolean init)
Constructor.- Parameters:
neuralPSO- the training algorithmparticleIndex- the index of the particle in the swarminit- true for an initialisation iteration
-
-
Method Detail
-
run
public final void run()
Update the particle velocity, position and personal best.- Specified by:
runin interfaceEngineTask
-
-
DMelt 3.0 © DataMelt by jWork.ORG