|
||||||||||
| 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(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. |
Object |
clone()
|
void |
close()
Close this data set. |
Persistor |
createPersistor()
Create a persistor for this object. |
EncogCollection |
getCollection()
|
List<NeuralDataPair> |
getData()
Get the data held by this container. |
String |
getDescription()
|
int |
getIdealSize()
Get the size of the ideal dataset. |
int |
getInputSize()
Get the size of the input dataset. |
String |
getName()
|
void |
getRecord(long index,
EngineData 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. |
Iterator<NeuralDataPair> |
iterator()
Create an iterator for this collection. |
Indexable |
openAdditional()
Create an additional data set. |
void |
setCollection(EncogCollection collection)
Set the Encog collection that this object belongs to. |
void |
setData(List<NeuralDataPair> data)
|
void |
setDescription(String description)
Set the description of this object. |
void |
setName(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(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 Object clone()
clone in class Objectpublic void close()
close in interface NeuralDataSetpublic Persistor createPersistor()
createPersistor in interface EncogPersistedObjectpublic List<NeuralDataPair> getData()
public String getDescription()
getDescription in interface EncogPersistedObjectpublic int getIdealSize()
getIdealSize in interface EngineDataSetgetIdealSize in interface NeuralDataSetpublic int getInputSize()
getInputSize in interface EngineDataSetgetInputSize in interface NeuralDataSetpublic String getName()
getName in interface EncogPersistedObject
public void getRecord(long index,
EngineData pair)
getRecord in interface EngineIndexableSetindex - The index to read.pair - The pair to hold the data.public long getRecordCount()
EngineIndexableSet
getRecordCount in interface EngineIndexableSetpublic boolean isSupervised()
isSupervised in interface EngineDataSetisSupervised in interface NeuralDataSetpublic Iterator<NeuralDataPair> iterator()
iterator in interface Iterable<NeuralDataPair>public Indexable openAdditional()
openAdditional in interface EngineIndexableSetpublic void setData(List<NeuralDataPair> data)
data - the data to setpublic void setDescription(String description)
EncogPersistedObject
setDescription in interface EncogPersistedObjectdescription - the description to setpublic void setName(String name)
EncogPersistedObject
setName in interface EncogPersistedObjectname - the name to setpublic EncogCollection getCollection()
getCollection in interface EncogPersistedObjectpublic void setCollection(EncogCollection collection)
setCollection in interface EncogPersistedObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||