Back to models
Splitter

Repeat

Add repetitions to a splitter, element-wise or sequence-wise.

Quickstart

python
from sktime.split.compose import Repeat

estimator = Repeat(splitter, times=1, mode='entry', random_repeat=False)

Parameters(4)

splittersktime splitter object, BaseSplitter descendant instance
splitter to repeat
timesint, default=1
number of times to repeat the splitter
modestr, one of “entry” and “sequence”, default=”entry”

mode of repetition “entry” repeats each entry of the split times times “sequence” repeats the entire sequence of splits times times

random_repeatbool, default=False

whether repetitions should be exact or independent pseudo-random If False, repetitions are exact (default) If True, repetitions are random, splitter is cloned for each repetition. Note: if a random seed is set in splitter, the effect is the same as setting random_repeat to False, even if random_repeat is True.