train_indices | R Documentation |
An S3 generic method to retrieve the training sample indices for a specific fold from a cross-validation specification object.
train_indices(obj, fold_num, ...)
obj |
A cross-validation specification object (e.g., inheriting from 'cross_validation'). |
fold_num |
An integer specifying the fold number for which to retrieve training indices. |
... |
Additional arguments passed to methods. |
An integer vector of training indices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.