org.encog.ml.data.folded
public class FoldedDataSet extends Object implements MLDataSet
Modifier and Type | Field and Description |
---|---|
static String |
ADD_NOT_SUPPORTED
Error message: adds are not supported.
|
Constructor and Description |
---|
FoldedDataSet(MLDataSet theUnderlying)
Create a folded dataset.
|
Modifier and Type | Method and Description |
---|---|
void |
add(MLData data1)
Not supported.
|
void |
add(MLData inputData,
MLData idealData)
Not supported.
|
void |
add(MLDataPair inputData)
Not supported.
|
void |
close()
Close the dataset.
|
void |
fold(int theNumFolds)
Fold the dataset.
|
MLDataPair |
get(int index) |
int |
getCurrentFold() |
int |
getCurrentFoldOffset() |
int |
getCurrentFoldSize() |
int |
getIdealSize() |
int |
getInputSize() |
int |
getNumFolds() |
FoldedDataSet |
getOwner() |
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 |
getUnderlying() |
boolean |
isSupervised() |
Iterator<MLDataPair> |
iterator() |
MLDataSet |
openAdditional()
Opens an additional instance of this dataset.
|
void |
setCurrentFold(int theCurrentFold)
Set the current fold.
|
void |
setOwner(FoldedDataSet theOwner) |
int |
size() |
public static final String ADD_NOT_SUPPORTED
public FoldedDataSet(MLDataSet theUnderlying)
theUnderlying
- The underlying folded dataset.public void add(MLData data1)
public void add(MLDataPair inputData)
public void fold(int theNumFolds)
theNumFolds
- The number of folds.public int getCurrentFold()
public int getCurrentFoldOffset()
public int getCurrentFoldSize()
public int getIdealSize()
getIdealSize
in interface MLDataSet
public int getInputSize()
getInputSize
in interface MLDataSet
public int getNumFolds()
public FoldedDataSet getOwner()
public void getRecord(long index, MLDataPair pair)
public long getRecordCount()
getRecordCount
in interface MLDataSet
public MLDataSet getUnderlying()
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 setCurrentFold(int theCurrentFold)
theCurrentFold
- the currentFold to setpublic void setOwner(FoldedDataSet theOwner)
theOwner
- The owner.public MLDataPair get(int index)
Copyright © 2014. All Rights Reserved.