View source: R/cross_validation.R
cross_validation | R Documentation |
split data randomly obtain prob part data on seed, and return 1-prob part with prob part data by numbering list.
hcv(data, seed, prob)
data |
what data need split |
seed |
random seed from r |
prob |
obtain how much prob part |
hcv(data=iris, seed=123, prob=0.2)
hcv(data=iris, seed=123, prob=0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.