The Encog Project

org.encog.neural.data.xml
Class XMLNeuralDataSet

java.lang.Object
  extended by org.encog.neural.data.basic.BasicNeuralDataSet
      extended by org.encog.neural.data.xml.XMLNeuralDataSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<NeuralDataPair>, NeuralDataSet, EncogPersistedObject

public class XMLNeuralDataSet
extends BasicNeuralDataSet

A data source that reads XML files. This class is memory based, so large enough datasets could cause memory issues.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.encog.neural.data.basic.BasicNeuralDataSet
BasicNeuralDataSet.BasicNeuralIterator
 
Field Summary
static java.lang.String ADD_NOT_SUPPORTED
          Error Message: adds are not supported.
 
Constructor Summary
XMLNeuralDataSet(java.lang.String filename, java.lang.String pairXML, java.lang.String inputXML, java.lang.String idealXML, java.lang.String valueXML)
          Construct an XML neural data set.
 
Method Summary
 void add(NeuralData data1)
          Adds are not supported, this is a read only data set.
 void add(NeuralData inputData, NeuralData idealData)
          Adds are not supported, this is a read only data set.
 void add(NeuralDataPair inputData)
          Adds are not supported, this is a read only data set.
 
Methods inherited from class org.encog.neural.data.basic.BasicNeuralDataSet
close, createPersistor, getData, getDescription, getIdealSize, getInputSize, getName, isSupervised, iterator, setData, setDescription, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_NOT_SUPPORTED

public static final java.lang.String ADD_NOT_SUPPORTED
Error Message: adds are not supported.

See Also:
Constant Field Values
Constructor Detail

XMLNeuralDataSet

public XMLNeuralDataSet(java.lang.String filename,
                        java.lang.String pairXML,
                        java.lang.String inputXML,
                        java.lang.String idealXML,
                        java.lang.String valueXML)
Construct an XML neural data set.

Parameters:
filename - The filename to load.
pairXML - The tag name for pairs.
inputXML - The tag name for input.
idealXML - The tag name for ideal.
valueXML - The tag name for actual values.
Method Detail

add

public void add(NeuralData inputData,
                NeuralData idealData)
Adds are not supported, this is a read only data set.

Specified by:
add in interface NeuralDataSet
Overrides:
add in class BasicNeuralDataSet
Parameters:
inputData - Not used.
idealData - Not used.

add

public void add(NeuralDataPair inputData)
Adds are not supported, this is a read only data set.

Specified by:
add in interface NeuralDataSet
Overrides:
add in class BasicNeuralDataSet
Parameters:
inputData - Not used.

add

public void add(NeuralData data1)
Adds are not supported, this is a read only data set.

Specified by:
add in interface NeuralDataSet
Overrides:
add in class BasicNeuralDataSet
Parameters:
data1 - Not used.

The Encog Project