org.encog.ml.data.versatile
public class VersatileMLDataSet extends MatrixMLDataSet
MatrixMLDataSet.MatrixMLDataSetIterator| Constructor and Description |
|---|
VersatileMLDataSet(VersatileDataSource theSource)
Construct the data source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
analyze()
Analyze the input and determine max, min, mean, etc.
|
void |
defineInput(ColumnDefinition col)
Define an input column.
|
void |
defineOutput(ColumnDefinition col)
Define an output column.
|
void |
defineSingleOutputOthersInput(ColumnDefinition outputColumn)
Define a single column as an output column, all others as inputs.
|
ColumnDefinition |
defineSourceColumn(String name,
ColumnType colType)
Define a source column.
|
ColumnDefinition |
defineSourceColumn(String name,
int index,
ColumnType colType)
Define a source column.
|
void |
divide(List<DataDivision> dataDivisionList,
boolean shuffle,
GenerateRandom rnd)
Divide, and optionally shuffle, the dataset.
|
NormalizationHelper |
getNormHelper() |
void |
normalize()
Normalize the data set, and allocate memory to hold it.
|
void |
setNormHelper(NormalizationHelper helper) |
add, add, add, close, get, getCalculatedIdealSize, getCalculatedInputSize, getData, getIdealSize, getInputSize, getLagWindowSize, getLeadWindowSize, getMask, getRecord, getRecordCount, isSupervised, iterator, openAdditional, setCalculatedIdealSize, setCalculatedInputSize, setData, setLagWindowSize, setLeadWindowSize, sizepublic VersatileMLDataSet(VersatileDataSource theSource)
theSource - The data source.public void analyze()
public void normalize()
public ColumnDefinition defineSourceColumn(String name, int index, ColumnType colType)
name - The name of the column.index - The index of the column.colType - The column type.public NormalizationHelper getNormHelper()
public void setNormHelper(NormalizationHelper helper)
helper - the helper to setpublic void divide(List<DataDivision> dataDivisionList, boolean shuffle, GenerateRandom rnd)
dataDivisionList - The desired divisions.shuffle - True, if we should shuffle.rnd - Random number generator, often with a specific seed.public void defineOutput(ColumnDefinition col)
col - The output column.public void defineInput(ColumnDefinition col)
col - The input column.public void defineSingleOutputOthersInput(ColumnDefinition outputColumn)
outputColumn - The output column.public ColumnDefinition defineSourceColumn(String name, ColumnType colType)
name - The name of the source column.colType - The column type.Copyright © 2014. All Rights Reserved.