org.encog.ml.data.basic
public class BasicMLSequenceSet extends Object implements Serializable, MLSequenceSet
Modifier and Type | Class and Description |
---|---|
class |
BasicMLSequenceSet.BasicMLSeqIterator
An iterator to be used with the BasicMLDataSet.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public void add(MLData theData)
public void add(MLData inputData, MLData idealData)
public void add(MLDataPair inputData)
public void close()
public int getIdealSize()
getIdealSize
in interface MLDataSet
public int getInputSize()
getInputSize
in interface MLDataSet
public void getRecord(long index, MLDataPair pair)
public long getRecordCount()
getRecordCount
in interface MLDataSet
public boolean isSupervised()
isSupervised
in interface MLDataSet
public Iterator<MLDataPair> iterator()
iterator
in interface Iterable<MLDataPair>
public MLDataSet openAdditional()
openAdditional
in interface MLDataSet
public void startNewSequence()
MLSequenceSet
startNewSequence
in interface MLSequenceSet
public int getSequenceCount()
getSequenceCount
in interface MLSequenceSet
public MLDataSet getSequence(int i)
MLSequenceSet
getSequence
in interface MLSequenceSet
i
- The index of the sequence.public Collection<MLDataSet> getSequences()
getSequences
in interface MLSequenceSet
public MLDataPair get(int index)
public void add(MLDataSet sequence)
MLSequenceSet
add
in interface MLSequenceSet
sequence
- The sequence to add.Copyright © 2014. All Rights Reserved.