Description Usage Arguments Value See Also Examples
Create a random subset of a dataset
| 1 2 3 4 5 6 | create_random_subset(
  mdata,
  instances,
  attributes = mdata$measures$num.inputs,
  replacement = FALSE
)
 | 
| mdata | A mldr dataset | 
| instances | The number of expected instances | 
| attributes | The number of expected attributes. (Default: all attributes) | 
| replacement | A boolean value to define sample with replacement or not. (Default: FALSE) | 
A new mldr subset
Other sampling: 
create_holdout_partition(),
create_kfold_partition(),
create_subset()
| 1 2 | small.toy <- create_random_subset(toyml, 10, 3)
medium.toy <- create_random_subset(toyml, 50, 5)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.