|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.ml.data.basic.BasicMLSequenceSet
public class BasicMLSequenceSet
A basic implementation of the MLSequenceSet.
| Nested Class Summary | |
|---|---|
class |
BasicMLSequenceSet.BasicMLSeqIterator
An iterator to be used with the BasicMLDataSet. |
| Constructor Summary | |
|---|---|
BasicMLSequenceSet()
Default constructor. |
|
BasicMLSequenceSet(BasicMLSequenceSet other)
|
|
BasicMLSequenceSet(double[][] input,
double[][] ideal)
Construct a data set from an input and ideal array. |
|
BasicMLSequenceSet(List<MLDataPair> theData)
Construct a data set from an already created list. |
|
BasicMLSequenceSet(MLDataSet set)
Copy whatever dataset type is specified into a memory dataset. |
|
| Method Summary | |
|---|---|
void |
add(MLData theData)
Add a object to the dataset. |
void |
add(MLData inputData,
MLData idealData)
Add a set of input and ideal data to the dataset. |
void |
add(MLDataPair inputData)
Add a an object to the dataset. |
void |
add(MLDataSet sequence)
Add a new sequence. |
Object |
clone()
|
void |
close()
Close this datasource and release any resources obtained by it, including any iterators created. |
MLDataPair |
get(int index)
|
int |
getIdealSize()
|
int |
getInputSize()
|
void |
getRecord(long index,
MLDataPair pair)
Read an individual record, specified by index, in random order. |
long |
getRecordCount()
Determine the total number of records in the set. |
MLDataSet |
getSequence(int i)
Get an individual sequence. |
int |
getSequenceCount()
|
Collection<MLDataSet> |
getSequences()
|
boolean |
isSupervised()
|
Iterator<MLDataPair> |
iterator()
|
MLDataSet |
openAdditional()
Opens an additional instance of this dataset. |
int |
size()
|
void |
startNewSequence()
Cause a "break" in the data by creating a the beginning of a new sequence. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicMLSequenceSet()
public BasicMLSequenceSet(BasicMLSequenceSet other)
public BasicMLSequenceSet(double[][] input,
double[][] ideal)
input - The input into the machine learning method for training.ideal - The ideal output for training.public BasicMLSequenceSet(List<MLDataPair> theData)
theData - The data to use.public BasicMLSequenceSet(MLDataSet set)
set - The dataset to copy.| Method Detail |
|---|
public void add(MLData theData)
add in interface MLDataSettheData - The data item to be added.
public void add(MLData inputData,
MLData idealData)
add in interface MLDataSetinputData - Input data.idealData - Ideal data.public void add(MLDataPair inputData)
add in interface MLDataSetinputData - A MLDataPair object that contains both input and ideal data.public final Object clone()
clone in class Objectpublic final void close()
close in interface MLDataSetpublic final int getIdealSize()
getIdealSize in interface MLDataSetpublic final int getInputSize()
getInputSize in interface MLDataSet
public final void getRecord(long index,
MLDataPair pair)
getRecord in interface MLDataSetindex - The index to read.pair - The pair that the record will be copied into.public final long getRecordCount()
getRecordCount in interface MLDataSetpublic final boolean isSupervised()
isSupervised in interface MLDataSetpublic final Iterator<MLDataPair> iterator()
iterator in interface Iterable<MLDataPair>public final MLDataSet openAdditional()
openAdditional in interface MLDataSetpublic void startNewSequence()
MLSequenceSet
startNewSequence in interface MLSequenceSetpublic int getSequenceCount()
getSequenceCount in interface MLSequenceSetpublic MLDataSet getSequence(int i)
MLSequenceSet
getSequence in interface MLSequenceSeti - The index of the sequence.
public Collection<MLDataSet> getSequences()
getSequences in interface MLSequenceSetpublic int size()
size in interface MLDataSetpublic MLDataPair get(int index)
get in interface MLDataSetpublic void add(MLDataSet sequence)
MLSequenceSet
add in interface MLSequenceSetsequence - The sequence to add.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||