cut_dataset | R Documentation |
This function chooses the rows of a dataset to be included in the train, test (optional) and validation (optional) datasets according to proportions specified by the user.
cut_dataset(n, proportions, test = TRUE, validation = TRUE)
n |
The total number of rows to sample from. |
proportions |
The list of the (2) proportions wanted for test and validation set. Only the first is used when there is only one of either test or validation that is set to TRUE. Produces an error when the sum is greater to one. Useless if both test and validation are set to FALSE. Default: list(0.2,0.2). |
test |
TRUE if a test dataset is wanted, FALSE otherwise (default=TRUE). |
validation |
TRUE if a test dataset is wanted, FALSE otherwise (default=TRUE). |
Adrien Ehrhardt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.