Description Usage Arguments Value Examples
View source: R/partitions_rand.R
Random partitioning
1 2 | random.partitions(mld, is.cv = FALSE, r, seed = 10,
get.indices = FALSE)
|
mld |
The |
is.cv |
Option to enable treatment of partitions as cross-validation test folds |
r |
A vector of percentages of instances to be selected for each partition |
seed |
The seed to initialize the random number generator. By default is 10. Change it if you want to obtain partitions containing different samples, for instance to use a 2x5 fcv strategy |
get.indices |
A logical value indicating whether to return lists of indices or lists of |
An mldr.folds
object. This is a list containing k elements, one for each fold. Each element is made up
of two mldr objects, called train
and test
1 2 3 4 5 6 7 |
Attaching package: ‘mldr.datasets’
The following object is masked from ‘package:stats’:
density
num.attributes num.instances num.inputs num.labels num.labelsets
1 78 149 72 6 21
num.single.labelsets max.frequency cardinality density meanIR scumble
1 7 24 1.832215 0.3053691 1.709932 0.01816631
scumble.cv tcs
1 1.147398 9.112948
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.