Zurück zu den Modellen
Splitter

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

python
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 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.