Description Usage Arguments Value Examples
Add a cv folds column to a data frame.
1 | get_cv_folds(training_frame, n_folds = 5)
|
training_frame |
data frame, the frame to which to append the cv folds column |
n_folds |
integer, number of folds |
A data frame identical to training frame with one extra column called "fold_id" that gives the fold of each column. Also, the attributes "cv_column" and "n_folds" are added to indicate that a cv column has been defined. If the "cv_column" attribute is already present, training_frame is returned unchanged.
1 | get_cv_folds(iris, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.