Sampling
Interface for k-fold and percentage-split sampling functions in AUCMEDI.
Function | Description |
---|---|
aucmedi.sampling.split | Simple wrapper function for calling percentage split sampling functions. |
aucmedi.sampling.kfold | Simple wrapper function for calling k-fold cross-validation sampling functions. |
Recommended Import
# Import sampling
from aucmedi.sampling import sampling_split, sampling_kfold
# Run selected sampling
ds_ps = sampling_split(samples, labels, sampling=[0.7, 0.25, 0.05])
ds_ks = sampling_kfold(samples, labels, n_splits=3)