|
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. |
Persistor |
createPersistor()
Create a persistor for this object. |
java.util.List<NeuralDataPair> |
getData()
Get the data held by this container. |
java.lang.String |
getDescription()
|
int |
getIdealSize()
Get the size of the ideal dataset. |
int |
getInputSize()
Get the size of the input dataset. |
java.lang.String |
getName()
|
boolean |
isSupervised()
Determine if this neural data set is supervied. |
java.util.Iterator<NeuralDataPair> |
iterator()
Create an iterator for this collection. |
void |
setData(java.util.List<NeuralDataPair> data)
|
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
| 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 Persistor createPersistor()
createPersistor in interface EncogPersistedObjectpublic java.util.List<NeuralDataPair> getData()
public java.lang.String getDescription()
getDescription in interface EncogPersistedObjectpublic int getIdealSize()
getIdealSize in interface NeuralDataSetpublic int getInputSize()
getInputSize in interface NeuralDataSetpublic java.lang.String getName()
getName in interface EncogPersistedObjectpublic boolean isSupervised()
public java.util.Iterator<NeuralDataPair> iterator()
iterator in interface java.lang.Iterable<NeuralDataPair>public void setData(java.util.List<NeuralDataPair> data)
data - the data to setpublic void setDescription(java.lang.String description)
setDescription in interface EncogPersistedObjectdescription - the description to setpublic void setName(java.lang.String name)
setName in interface EncogPersistedObjectname - the name to set
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||