Set up Cross-Validation Folds
setup_cross.RdThese S3 methods set up the internal cross-validation. Methods exist for both stratified and non-stratified scenarios. Since these are mostly internal methods, documentation is minimal.
The stratified version is a S3 method that sets up the internal cross-validation for stratified folds. Stratified implies that the structure (proportions) of the response variable is maintained (i.e. the proportion of disease samples in the fold is comparable to the disease proportion in the full training set).
The plotting routine allows one to visually check the cross-validation stratification for bias.
Arguments
- x
A
feature_selectclass object from a call call tofeature_selection().