|
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
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. |
|
BasicNeuralDataSet(java.util.List<NeuralDataPair> data)
Construct a data set from an already created list. |
|
| 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. |
java.lang.Object |
clone()
|
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()
|
void |
getRecord(long index,
NeuralDataPair pair)
Get a record by index into the specified pair. |
long |
getRecordCount()
Determine the total number of records in the set. |
boolean |
isSupervised()
Determine if this neural data set is supervied. |
java.util.Iterator<NeuralDataPair> |
iterator()
Create an iterator for this collection. |
Indexable |
openAdditional()
Create an additional data set. |
void |
setData(java.util.List<NeuralDataPair> data)
|
void |
setDescription(java.lang.String description)
Set the description of this object. |
void |
setName(java.lang.String name)
Set the name of this object. |
| Methods inherited from class java.lang.Object |
|---|
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.public BasicNeuralDataSet(java.util.List<NeuralDataPair> data)
data - The data to use.| 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 java.lang.Object clone()
clone in class java.lang.Objectpublic 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 EncogPersistedObject
public void getRecord(long index,
NeuralDataPair pair)
getRecord in interface Indexableindex - The index to read.pair - The pair to hold the data.public long getRecordCount()
Indexable
getRecordCount in interface Indexablepublic boolean isSupervised()
public java.util.Iterator<NeuralDataPair> iterator()
iterator in interface java.lang.Iterable<NeuralDataPair>public Indexable openAdditional()
openAdditional in interface Indexablepublic void setData(java.util.List<NeuralDataPair> data)
data - the data to setpublic void setDescription(java.lang.String description)
EncogPersistedObject
setDescription in interface EncogPersistedObjectdescription - the description to setpublic void setName(java.lang.String name)
EncogPersistedObject
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 | ||||||||