Splitters
Additional functions for splitting data
KFoldColSplitter
KFoldColSplitter (fold:Union[int,Iterable[int],MutableSequence[int],fastc ore.foundation.L,fastcore.basics.fastuple]=0, col:Union[int,str]='folds')
Split items
(supposed to be a dataframe) by fold
in col
Type | Default | Details | |
---|---|---|---|
fold | Listified[int] | 0 | Valid set fold(s) |
col | int | str | folds | Column with folds |
ParentSplitter
ParentSplitter (train_name:str='train', valid_name:str='valid')
Split items
from the parent folder names (train_name
and valid_name
).
Type | Default | Details | |
---|---|---|---|
train_name | str | train | Train set folder name |
valid_name | str | valid | Valid set folder name |
GreatGrandparentSplitter
GreatGrandparentSplitter (train_name:str='train', valid_name:str='valid')
Split items
from the great grand parent folder names (train_name
and valid_name
).
Type | Default | Details | |
---|---|---|---|
train_name | str | train | Train set folder name |
valid_name | str | valid | Valid set folder name |