|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.data.basic.BasicNeuralDataSet
public class BasicNeuralDataSet
Basic implementation of the NeuralDataSet class. This class simply stores the neural data in an ArrayList. This class is memory based, so large enough datasets could cause memory issues. Many other dataset types extend this class.
| Nested Class Summary | |
|---|---|
class |
BasicNeuralDataSet.BasicNeuralIterator
An iterator to be used with the BasicNeuralDataSet. |
| Constructor Summary | |
|---|---|
BasicNeuralDataSet()
Default constructor. |
|
BasicNeuralDataSet(double[][] input,
double[][] ideal)
Construct a data set from an input and idea array. |
|
| Method Summary | |
|---|---|
void |
add(NeuralData data)
Add input to the training set with no expected output. |
void |
add(NeuralData inputData,
NeuralData idealData)
Add input and expected output. |
void |
add(NeuralDataPair inputData)
Add a neural data pair to the list. |
void |
close()
Close this data set. |
java.util.List<NeuralDataPair> |
getData()
Get the data held by this container. |
int |
getIdealSize()
Get the size of the ideal dataset. |
int |
getInputSize()
Get the size of the input dataset. |
java.util.Iterator<NeuralDataPair> |
iterator()
Create an iterator for this collection. |
void |
setData(java.util.List<NeuralDataPair> data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicNeuralDataSet()
public BasicNeuralDataSet(double[][] input,
double[][] ideal)
input - The input into the neural network for training.ideal - The ideal output for training.| Method Detail |
|---|
public void add(NeuralData data)
add in interface NeuralDataSetdata - The input to be added to the training set.
public void add(NeuralData inputData,
NeuralData idealData)
add in interface NeuralDataSetinputData - The input data to train on.idealData - The ideal data to use for training.public void add(NeuralDataPair inputData)
add in interface NeuralDataSetinputData - A NeuralDataPair object that contains both
input and ideal data.public void close()
close in interface NeuralDataSetpublic java.util.List<NeuralDataPair> getData()
public int getIdealSize()
getIdealSize in interface NeuralDataSetpublic int getInputSize()
getInputSize in interface NeuralDataSetpublic java.util.Iterator<NeuralDataPair> iterator()
iterator in interface java.lang.Iterable<NeuralDataPair>public void setData(java.util.List<NeuralDataPair> data)
data - the data to set
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||