public class KCVDataSplitter extends AbstractDataSplitter
DataSplitter.SplitterTypedataConvertor, LOG, testMatrix, trainMatrix, validationMatrixconf, CONF_DATA_COLUMN_FORMAT, CONF_DATA_INPUT_PATH, CONF_DFS_DATA_DIR| Constructor and Description |
|---|
KCVDataSplitter()
Empty constructor.
|
KCVDataSplitter(DataConvertor dataConvertor,
Configuration conf)
Initializes a newly created
KCVDataSplitter object
with convertor and configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
splitData()
Split the data.
|
void |
splitData(int k)
preserve the k-th validation as the test set and the rest as train set
|
void |
splitFolds()
Assign the data into k folds.
|
void |
splitFolds(int kFold)
Split the data into k folds.
|
getTestData, getTrainData, getValidData, setDataConvertorgetConf, setConfpublic KCVDataSplitter()
public KCVDataSplitter(DataConvertor dataConvertor, Configuration conf)
KCVDataSplitter object
with convertor and configuration.dataConvertor - the convertor for the splitter.conf - the configuration for the splitter.public void splitData(int k)
throws LibrecException
k - the index of validationLibrecException - if error occurspublic void splitFolds()
public void splitFolds(int kFold)
kFold - the number of folds.public void splitData()
throws LibrecException
LibrecException - if error occursCopyright © 2017. All Rights Reserved.