Additional functions for splitting data

KFoldColSplitter[source]

KFoldColSplitter(fold:listified[int]=0, col: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 or str folds Column with folds

ParentSplitter[source]

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[source]

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