org.encog.ml.data
public interface MLDataSet extends Iterable<MLDataPair>
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() |
MLDataSet |
openAdditional()
Opens an additional instance of this dataset.
|
int |
size() |
int getIdealSize()
int getInputSize()
boolean isSupervised()
long getRecordCount()
void getRecord(long index, MLDataPair pair)
index
- The index to read.pair
- The pair that the record will be copied into.MLDataSet openAdditional()
void add(MLData data1)
data1
- The data item to be added.void add(MLData inputData, MLData idealData)
inputData
- Input data.idealData
- Ideal data.void add(MLDataPair inputData)
inputData
- A MLDataPair object that contains both input and ideal data.void close()
int size()
MLDataPair get(int index)
Copyright © 2014. All Rights Reserved.