net.sourceforge.cilib.neuralnetwork.generic.evaluationmediators
Class SAILAEvaluationMediator

java.lang.Object
  extended by net.sourceforge.cilib.algorithm.Algorithm
      extended by net.sourceforge.cilib.algorithm.SingularAlgorithm
          extended by net.sourceforge.cilib.neuralnetwork.foundation.EvaluationMediator
              extended by net.sourceforge.cilib.neuralnetwork.generic.evaluationmediators.SAILAEvaluationMediator
All Implemented Interfaces:
Serializable, Runnable, Cloneable

public class SAILAEvaluationMediator
extends EvaluationMediator

Author:
stefanv
See Also:
Serialized Form

Field Summary
protected  NeuralNetworkDataIterator iteratorDg
           
protected  NeuralNetworkDataIterator iteratorDt
           
 
Fields inherited from class net.sourceforge.cilib.neuralnetwork.foundation.EvaluationMediator
data, errorDg, errorDt, errorDv, nrEvaluationsPerEpoch, prototypeError, topology, totalEvaluations, trainer
 
Fields inherited from class net.sourceforge.cilib.algorithm.Algorithm
optimisationProblem
 
Constructor Summary
SAILAEvaluationMediator()
           
 
Method Summary
 void algorithmIteration()
          The actual operations that the current Algorithm performs within a single iteration.
 TypeList evaluate(NNPattern p)
           
 OptimisationSolution getBestSolution()
          Get the best current solution.
 Algorithm getClone()
          Create a cloned copy of the current object and return it.
 List<OptimisationSolution> getSolutions()
          Get the collection of best solutions.
 void performInitialisation()
          Perform the needed initialisation required before the execution of the algorithm starts.
 
Methods inherited from class net.sourceforge.cilib.neuralnetwork.foundation.EvaluationMediator
addPrototypError, computeErrorIteration, finaliseErrors, getData, getEpochStrategy, getErrorDg, getErrorDt, getErrorDv, getNrEvaluationsPerEpoch, getPrototypeError, getTopology, getTotalEvaluations, getTrainer, incrementEvaluationsPerEpoch, performLearning, resetError, setData, setEpochStrategy, setErrorDg, setErrorDt, setErrorDv, setErrorNoOutputs, setErrorNoPatterns, setTopology, setTrainer
 
Methods inherited from class net.sourceforge.cilib.algorithm.Algorithm
addAlgorithmListener, addStoppingCondition, get, getAlgorithmList, getIterations, getOptimisationProblem, getPercentageComplete, getStoppingConditions, initialise, isFinished, performIteration, performUninitialisation, removeAlgorithmListener, removeStoppingCondition, reset, run, setOptimisationProblem, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iteratorDt

protected NeuralNetworkDataIterator iteratorDt

iteratorDg

protected NeuralNetworkDataIterator iteratorDg
Constructor Detail

SAILAEvaluationMediator

public SAILAEvaluationMediator()
Method Detail

performInitialisation

public void performInitialisation()
Description copied from class: Algorithm
Perform the needed initialisation required before the execution of the algorithm starts.

Overrides:
performInitialisation in class EvaluationMediator

algorithmIteration

public void algorithmIteration()
Description copied from class: SingularAlgorithm
The actual operations that the current Algorithm performs within a single iteration.

Overrides:
algorithmIteration in class EvaluationMediator

evaluate

public TypeList evaluate(NNPattern p)
Overrides:
evaluate in class EvaluationMediator

getBestSolution

public OptimisationSolution getBestSolution()
Description copied from class: Algorithm
Get the best current solution. This best solution is determined from the personal bests of the particles.

Overrides:
getBestSolution in class EvaluationMediator
Returns:
The OptimisationSolution representing the best solution.

getClone

public Algorithm getClone()
Description copied from class: Algorithm
Create a cloned copy of the current object and return it. In general the created copy will be a deep copy of the provided instance. As a result this operation an be quite expensive if used incorrectly.

Specified by:
getClone in interface Cloneable
Overrides:
getClone in class EvaluationMediator
Returns:
An exact clone of the current object instance.
See Also:
Object.clone()

getSolutions

public List<OptimisationSolution> getSolutions()
Description copied from class: Algorithm
Get the collection of best solutions. This result does not actually make sense in the normal PSO algorithm, but rather in a MultiObjective optimization.

Overrides:
getSolutions in class EvaluationMediator
Returns:
The Collection<OptimisationSolution> containing the solutions.


Copyright © 2009 CIRG. All Rights Reserved.