Create the settings for defining how the plpData are split into test/validation/train sets using an existing split - good to use for reproducing results from a different run
Source:R/DataSplitting.R
createExistingSplitSettings.Rd
Create the settings for defining how the plpData are split into test/validation/train sets using an existing split - good to use for reproducing results from a different run
Examples
# rowId 1 is in fold 1, rowId 2 is in fold 2, rowId 3 is in the test set
# rowId 4 is in fold 1, rowId 5 is in fold 2
createExistingSplitSettings(splitIds = data.frame(rowId = c(1, 2, 3, 4, 5),
index = c(1, 2, -1, 1, 2)))
#> $splitIds
#> rowId index
#> 1 1 1
#> 2 2 2
#> 3 3 -1
#> 4 4 1
#> 5 5 2
#>
#> attr(,"fun")
#> [1] "existingSplitter"
#> attr(,"class")
#> [1] "splitSettings"