net.sourceforge.cilib.neuralnetwork.generic.datacontainers
Class GenericData

java.lang.Object
  extended by net.sourceforge.cilib.neuralnetwork.generic.datacontainers.GenericData
All Implemented Interfaces:
Initializable, NeuralNetworkData
Direct Known Subclasses:
DynamicPatternSelectionData, SAILARealData

public class GenericData
extends Object
implements NeuralNetworkData

Author:
stefanv

Field Summary
protected  ArrayList<NNPattern> candidateSet
           
protected  DataDistributionStrategy distributor
           
protected  ArrayList<NNPattern> generalisationSet
           
protected  NeuralNetworkDataIterator iter
           
protected  ArrayList<NNPattern> trainingSet
           
protected  ArrayList<NNPattern> validationSet
           
 
Constructor Summary
GenericData()
          Create an instance of GenericData.
 
Method Summary
 void activeLearningUpdate(Object input)
          Update the active learning, based on the provided input.
 NeuralNetworkDataIterator getCandidateSetIterator()
          Get an Iterator for the candidate set.
 int getCandidateSetSize()
          Get the size of the candidate set.
 NeuralNetworkDataIterator getGeneralisationSetIterator()
          Get an Iterator for the generalisation set.
 int getGeneralisationSetSize()
          Get the size of the generalisation set.
 NeuralNetworkDataIterator getTrainingSetIterator()
          Get an Iterator for the training set.
 int getTrainingSetSize()
          Get the size of the training set.
 NeuralNetworkDataIterator getValidationSetIterator()
          Get an Iterator for the validation set.
 int getValidationSetSize()
          Get the size of the validation set.
 void initialize()
          Perform the needed initialisation for the data object.
 void printStatistics()
          Print some statistics about the data.
 void setDistributor(DataDistributionStrategy distributor)
          Set the required DataDistributionStrategy.
 void shuffleTrainingSet()
          Shuffle the training set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

candidateSet

protected ArrayList<NNPattern> candidateSet

trainingSet

protected ArrayList<NNPattern> trainingSet

generalisationSet

protected ArrayList<NNPattern> generalisationSet

validationSet

protected ArrayList<NNPattern> validationSet

distributor

protected DataDistributionStrategy distributor

iter

protected NeuralNetworkDataIterator iter
Constructor Detail

GenericData

public GenericData()
Create an instance of GenericData.

Method Detail

initialize

public void initialize()
Perform the needed initialisation for the data object.

Specified by:
initialize in interface Initializable

setDistributor

public void setDistributor(DataDistributionStrategy distributor)
Set the required DataDistributionStrategy.

Parameters:
distributor - The DataDistributionStrategy to use.

getCandidateSetSize

public int getCandidateSetSize()
Get the size of the candidate set.

Specified by:
getCandidateSetSize in interface NeuralNetworkData
Returns:
The candidate set size.

getTrainingSetSize

public int getTrainingSetSize()
Get the size of the training set.

Specified by:
getTrainingSetSize in interface NeuralNetworkData
Returns:
The training set size.

getGeneralisationSetSize

public int getGeneralisationSetSize()
Get the size of the generalisation set.

Specified by:
getGeneralisationSetSize in interface NeuralNetworkData
Returns:
The generalisation set size.

getValidationSetSize

public int getValidationSetSize()
Get the size of the validation set.

Specified by:
getValidationSetSize in interface NeuralNetworkData
Returns:
The validation set size.

getTrainingSetIterator

public NeuralNetworkDataIterator getTrainingSetIterator()
Get an Iterator for the training set.

Specified by:
getTrainingSetIterator in interface NeuralNetworkData
Returns:
The training set Iterator.

getGeneralisationSetIterator

public NeuralNetworkDataIterator getGeneralisationSetIterator()
Get an Iterator for the generalisation set.

Specified by:
getGeneralisationSetIterator in interface NeuralNetworkData
Returns:
The generalisation set Iterator.

getValidationSetIterator

public NeuralNetworkDataIterator getValidationSetIterator()
Get an Iterator for the validation set.

Specified by:
getValidationSetIterator in interface NeuralNetworkData
Returns:
The validation set Iterator.

getCandidateSetIterator

public NeuralNetworkDataIterator getCandidateSetIterator()
Get an Iterator for the candidate set.

Specified by:
getCandidateSetIterator in interface NeuralNetworkData
Returns:
The candidate set Iterator.

activeLearningUpdate

public void activeLearningUpdate(Object input)
Update the active learning, based on the provided input.

Specified by:
activeLearningUpdate in interface NeuralNetworkData
Parameters:
input - The input for the update.

shuffleTrainingSet

public void shuffleTrainingSet()
Shuffle the training set.

Specified by:
shuffleTrainingSet in interface NeuralNetworkData
See Also:
Collections.shuffle(java.util.List, Random)

printStatistics

public void printStatistics()
Print some statistics about the data.



Copyright © 2009 CIRG. All Rights Reserved.