class_honest_split | R Documentation |
Randomly spits the sample into a training sample and an honest sample.
class_honest_split(data, honesty.fraction = 0.5)
data |
|
honesty.fraction |
Fraction of honest sample. |
class_honest_split
looks for balanced splits, i.e., splits such as all the outcome's classes are represented
in both the training and the honest sample. After 100 trials, the program throws an error.
List with elements:
train_sample |
Training sample. |
honest_sample |
Honest sample. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.