|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.engine.data.BasicEngineDataSet
public class BasicEngineDataSet
Data is stored in an ArrayList. This class is memory based, so large enough datasets could cause memory issues. Many other dataset types extend this class.
| Constructor Summary | |
|---|---|
BasicEngineDataSet()
Default constructor. |
|
BasicEngineDataSet(double[][] input,
double[][] ideal)
Construct a data set from an input and idea array. |
|
BasicEngineDataSet(List<EngineData> data)
Construct a data set from an already created list. |
|
| Method Summary | |
|---|---|
void |
add(double[] data)
Add input to the training set with no expected output. |
void |
add(double[] inputData,
double[] idealData)
Add input and expected output. |
void |
add(EngineData inputData)
Add a neural data pair to the list. |
List<EngineData> |
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. |
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. |
EngineIndexableSet |
openAdditional()
Create an additional data set. |
void |
setData(List<EngineData> data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicEngineDataSet()
public BasicEngineDataSet(double[][] input,
double[][] ideal)
input - The input into the neural network for training.ideal - The ideal output for training.public BasicEngineDataSet(List<EngineData> data)
data - The data to use.| Method Detail |
|---|
public void add(double[] data)
data - The input to be added to the training set.
public void add(double[] inputData,
double[] idealData)
inputData - The input data to train on.idealData - The ideal data to use for training.public void add(EngineData inputData)
inputData - A NeuralDataPair object that contains both input and ideal
data.public List<EngineData> getData()
public int getIdealSize()
getIdealSize in interface EngineDataSetpublic int getInputSize()
getInputSize in interface EngineDataSet
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 EngineDataSetpublic EngineIndexableSet openAdditional()
openAdditional in interface EngineIndexableSetpublic void setData(List<EngineData> data)
data - the data to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||