aima.learning.neural
Class NNDataSet

java.lang.Object
  extended by aima.learning.neural.NNDataSet
Direct Known Subclasses:
IrisNNDataSet, RabbitEyeDataSet

public abstract class NNDataSet
extends java.lang.Object


Field Summary
protected  java.util.List<java.util.List<java.lang.Double>> nds
           
protected  java.util.List<java.lang.Integer> targetColumnNumbers
           
 
Constructor Summary
NNDataSet()
           
 
Method Summary
 void createExamplesFromDataSet(DataSet ds, Numerizer numerizer)
           
 void createExamplesFromFile(java.lang.String filename)
           
 void createNormalizedDataFromDataSet(DataSet ds, Numerizer numerizer)
           
 void createNormalizedDataFromFile(java.lang.String filename)
           
 NNExample getExample(int index)
           
 NNExample getExampleAtRandom()
           
 java.util.List<java.lang.Double> getMeans()
           
 java.util.List<java.util.List<java.lang.Double>> getNormalizedData()
           
 java.util.List<java.lang.Double> getStdevs()
           
 boolean hasMoreExamples()
           
 int howManyExamplesLeft()
           
 void refreshDataset()
           
abstract  void setTargetColumns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nds

protected java.util.List<java.util.List<java.lang.Double>> nds

targetColumnNumbers

protected java.util.List<java.lang.Integer> targetColumnNumbers
Constructor Detail

NNDataSet

public NNDataSet()
Method Detail

setTargetColumns

public abstract void setTargetColumns()

createNormalizedDataFromFile

public void createNormalizedDataFromFile(java.lang.String filename)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

createNormalizedDataFromDataSet

public void createNormalizedDataFromDataSet(DataSet ds,
                                            Numerizer numerizer)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getExampleAtRandom

public NNExample getExampleAtRandom()

getExample

public NNExample getExample(int index)

hasMoreExamples

public boolean hasMoreExamples()

howManyExamplesLeft

public int howManyExamplesLeft()

refreshDataset

public void refreshDataset()

createExamplesFromFile

public void createExamplesFromFile(java.lang.String filename)
                            throws java.lang.Exception
Throws:
java.lang.Exception

createExamplesFromDataSet

public void createExamplesFromDataSet(DataSet ds,
                                      Numerizer numerizer)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getNormalizedData

public java.util.List<java.util.List<java.lang.Double>> getNormalizedData()

getMeans

public java.util.List<java.lang.Double> getMeans()

getStdevs

public java.util.List<java.lang.Double> getStdevs()