Repeat
Add repetitions to a splitter, element-wise or sequence-wise.
Element-wise means: if the original splitter splits a series s into s1, s2, s3, then a 2-times repeat splits s into s1, s1, s2, s2, s3, s3. Sequence-wise means: if the original splitter splits a series s into s1, s2, s3, then a 2-times repeat splits s into s1, s2, s3, s1, s2, s3.
This splitter also allows to control whether repetitions are exact or independent pseuo-random, for stochastic splitters.
Schnellstart
from sktime.split.compose import Repeat
estimator = Repeat(splitter, times=1, mode='entry', random_repeat=False)Parameter(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
timestimes “sequence” repeats the entire sequence of splitstimestimes- random_repeatbool, default=False
whether repetitions should be exact or independent pseudo-random If False, repetitions are exact (default) If True, repetitions are random,
splitteris cloned for each repetition. Note: if a random seed is set insplitter, the effect is the same as settingrandom_repeatto False, even ifrandom_repeatis True.