|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.data.xml.XMLNeuralDataSet
public class XMLNeuralDataSet
A data source that reads XML files. This class is not memory based, so very
large XML files can be used, without problem.
The XML data is assumed to look something like below. The names of the tags
can be configured using the various properties on this object.
| Nested Class Summary | |
|---|---|
class |
XMLNeuralDataSet.XMLNeuralIterator
An iterator designed to read from XML files. |
| Field Summary | |
|---|---|
static String |
ADD_NOT_SUPPORTED
Error Message: adds are not supported. |
| Constructor Summary | |
|---|---|
XMLNeuralDataSet(String filename,
int inputSize,
int idealSize,
String pairXML,
String inputXML,
String idealXML,
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. |
void |
close()
Close the XML data source. |
String |
getFilename()
|
int |
getIdealSize()
|
String |
getIdealXML()
|
int |
getInputSize()
|
String |
getInputXML()
|
String |
getPairXML()
|
String |
getValueXML()
|
boolean |
isSupervised()
|
Iterator<NeuralDataPair> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADD_NOT_SUPPORTED
| Constructor Detail |
|---|
public XMLNeuralDataSet(String filename,
int inputSize,
int idealSize,
String pairXML,
String inputXML,
String idealXML,
String valueXML)
filename - The filename to read.inputSize - The input size.idealSize - The ideal size. Zero for unsupervised.pairXML - The XML that starts a pair.inputXML - The XML that starts input.idealXML - The XML that starts ideal.valueXML - The XML that starts values.| Method Detail |
|---|
public void add(NeuralData data1)
add in interface NeuralDataSetdata1 - Not used.
public void add(NeuralData inputData,
NeuralData idealData)
add in interface NeuralDataSetinputData - Not used.idealData - Not used.public void add(NeuralDataPair inputData)
add in interface NeuralDataSetinputData - Not used.public void close()
close in interface NeuralDataSetpublic String getFilename()
public int getIdealSize()
getIdealSize in interface EngineDataSetgetIdealSize in interface NeuralDataSetpublic String getIdealXML()
public int getInputSize()
getInputSize in interface EngineDataSetgetInputSize in interface NeuralDataSetpublic String getInputXML()
public String getPairXML()
public String getValueXML()
public Iterator<NeuralDataPair> iterator()
iterator in interface Iterable<NeuralDataPair>public boolean isSupervised()
isSupervised in interface EngineDataSetisSupervised in interface NeuralDataSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||