org.encog.ensemble.data
public class EnsembleDataSet extends Object implements MLDataSet
Constructor and Description |
---|
EnsembleDataSet(int inputSize,
int idealSize) |
EnsembleDataSet(MLDataSet mlds) |
Modifier and Type | Method and Description |
---|---|
void |
add(MLData data1)
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 |
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.
|
boolean |
isSupervised() |
Iterator<MLDataPair> |
iterator() |
MLDataSet |
openAdditional()
Opens an additional instance of this dataset.
|
int |
size() |
public EnsembleDataSet(int inputSize, int idealSize)
public EnsembleDataSet(MLDataSet mlds)
public int getIdealSize()
getIdealSize
in interface MLDataSet
public int getInputSize()
getInputSize
in interface MLDataSet
public boolean isSupervised()
isSupervised
in interface MLDataSet
public long getRecordCount()
MLDataSet
getRecordCount
in interface MLDataSet
public void getRecord(long index, MLDataPair pair)
MLDataSet
public MLDataSet openAdditional()
MLDataSet
openAdditional
in interface MLDataSet
public void add(MLData data1)
MLDataSet
public void add(MLData inputData, MLData idealData)
MLDataSet
public void add(MLDataPair inputData)
MLDataSet
public void close()
MLDataSet
public MLDataPair get(int index)
public Iterator<MLDataPair> iterator()
iterator
in interface Iterable<MLDataPair>
Copyright © 2014. All Rights Reserved.