public class LOOCVDataSplitter extends AbstractDataSplitter
DataSplitter.SplitterTypedataConvertor, LOG, testMatrix, trainMatrix, validationMatrixconf, CONF_DATA_COLUMN_FORMAT, CONF_DATA_INPUT_PATH, CONF_DFS_DATA_DIR| Constructor and Description |
|---|
LOOCVDataSplitter()
Empty constructor.
|
LOOCVDataSplitter(DataConvertor dataConvertor,
Configuration conf)
Initializes a newly created
LOOCVDataSplitter object
with convertor and configuration. |
| Modifier and Type | Method and Description |
|---|---|
void |
getLOOByItems()
Split ratings into two parts where one rating per item is preserved as
the test set and the remaining data as the training set.
|
void |
getLooByItemsDate()
Split ratings into two parts where the last item according to date is
preserved as the test set and the remaining data as the training set.
|
void |
getLOOByUser()
Split ratings into two parts where one rating per user is preserved as
the test set and the remaining data as the training set.
|
void |
getLOOByUserDate()
Split ratings into two parts where the last user according to date is
preserved as the test set and the remaining data as the training set.
|
void |
splitData()
Split the data.
|
getTestData, getTrainData, getValidData, setDataConvertorgetConf, setConfpublic LOOCVDataSplitter()
public LOOCVDataSplitter(DataConvertor dataConvertor, Configuration conf)
LOOCVDataSplitter object
with convertor and configuration.dataConvertor - the convertor for the splitter.conf - the configuration for the splitter.public void splitData()
throws LibrecException
LibrecException - if error occurspublic void getLOOByUser()
public void getLOOByUserDate()
public void getLOOByItems()
public void getLooByItemsDate()
Copyright © 2017. All Rights Reserved.