public class TrainingSet
extends java.lang.Object
Constructor and Description |
---|
TrainingSet()
Construct training set object.
|
TrainingSet(double[][] inputData,
double[][] targetData)
Construct training set from given data.
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(double[] newRow)
Add a row of values to the input data table.
|
double[][] |
getInputData() |
NumericMatrix |
getInputDataMatrix()
Wrap input data in a DataMatrix Object.
|
double |
getPercentValidation() |
double[][] |
getTargetData() |
NumericMatrix |
getTargetDataMatrix()
Wrap target data in a DataMatrix Object.
|
void |
setIndexSets()
Populate the validation and main index sets.
|
void |
setInputData(double[][] inputData)
Set the input data.
|
void |
setPercentValidation(double percentValidation) |
void |
setTargetData(double[][] targetData)
Set the target data.
|
public TrainingSet()
public TrainingSet(double[][] inputData, double[][] targetData)
inputData
- input datatargetData
- target datapublic void setIndexSets()
public void setInputData(double[][] inputData)
inputData
- the data to set.public void setTargetData(double[][] targetData)
targetData
- the data to setpublic double[][] getInputData()
public double[][] getTargetData()
public NumericMatrix getInputDataMatrix()
public NumericMatrix getTargetDataMatrix()
public double getPercentValidation()
public void setPercentValidation(double percentValidation)
percentValidation
- the percentValidation to setpublic void addRow(double[] newRow)
newRow
- the new values to add.