cleverly.learners.FoldOrigin#
- class cleverly.learners.FoldOrigin(generator: str, scheme: str, requested_n_folds: int, seed: int)[source]#
The record of how
random_partition()drew one split.The four fields and the rows’ cluster labels determine the assignment. A caller can therefore draw the split again from this record and compare the result.
- Parameters:
- generator
str The generator name and version,
"cleverly.random_partition/1"for every split this package draws.- scheme
str "vfold"for a row-level split, and"grouped"for a split of whole clusters.- requested_n_folds
int The fold count the caller asked for, before
resolve_n_folds()capped it.- seed
int The seed of the draw.
- generator
See also
random_partitionThe generator that writes this record.
FoldsThe split that carries this record as its
origin.