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

java.lang.Object
  extended by net.sourceforge.cilib.neuralnetwork.generic.datacontainers.CrossValidationStrategy
All Implemented Interfaces:
DataDistributionStrategy

public class CrossValidationStrategy
extends Object
implements DataDistributionStrategy

TODO: Complete this javadoc.


Field Summary
protected  String file
           
protected  BufferedReader inputReader
           
protected  int k
           
protected  int kOffset
           
protected  int noInputs
           
protected  int percentCan
           
protected  int percentGen
           
protected  int percentTrain
           
protected  Random shuffleRandomizer
           
 
Constructor Summary
CrossValidationStrategy()
           
 
Method Summary
 void initialize()
           
 void populateData(ArrayList<NNPattern> dc, ArrayList<NNPattern> dt, ArrayList<NNPattern> dg, ArrayList<NNPattern> dv)
           
 void setFile(String file)
           
 void setK(int k)
           
 void setKoffset(int koffset)
           
 void setNoInputs(int noInputs)
           
 void setPercentCan(int percentCan)
           
 void setPercentGen(int percentGen)
           
 void setPercentTrain(int percentTrain)
           
 void setShuffleRandomizer(Random shuffleRandomizer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputReader

protected BufferedReader inputReader

file

protected String file

shuffleRandomizer

protected Random shuffleRandomizer

noInputs

protected int noInputs

k

protected int k

kOffset

protected int kOffset

percentTrain

protected int percentTrain

percentGen

protected int percentGen

percentCan

protected int percentCan
Constructor Detail

CrossValidationStrategy

public CrossValidationStrategy()
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface DataDistributionStrategy

populateData

public void populateData(ArrayList<NNPattern> dc,
                         ArrayList<NNPattern> dt,
                         ArrayList<NNPattern> dg,
                         ArrayList<NNPattern> dv)
Specified by:
populateData in interface DataDistributionStrategy

setFile

public void setFile(String file)

setK

public void setK(int k)

setKoffset

public void setKoffset(int koffset)

setNoInputs

public void setNoInputs(int noInputs)

setPercentCan

public void setPercentCan(int percentCan)

setPercentGen

public void setPercentGen(int percentGen)

setPercentTrain

public void setPercentTrain(int percentTrain)

setShuffleRandomizer

public void setShuffleRandomizer(Random shuffleRandomizer)


Copyright © 2009 CIRG. All Rights Reserved.