Description Usage Arguments Value
inTrain/Test split wrapper -> add inTrain column for a df
1 2 3 4 5 6 7 8 | createDataPartition_2col(
df,
yname,
how = "random",
p = 0.75,
groups = 5,
step = 4
)
|
df |
the target df |
yname |
the column name will used for stratification |
p |
the percentage used for standalone validation |
groups |
n groups for stratification |
df with addictional inTrain column
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.