Splitters

Additional functions for splitting data

source

KFoldColSplitter

 KFoldColSplitter (fold:Union[int,Iterable[int],fastcore.foundation.L,fast
                   core.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

source

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

source

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