Zurück zu den Modellen
Splitter

TestPlusTrainSplitter

Splitter that adds the train sets to the test sets.

Takes a splitter cv and modifies it in the following way: The i-th train sets is identical to the i-th train set of cv. The i-th test set is the union of the i-th train set and i-th test set of cv.

Schnellstart

python
from sktime.split.testplustrain import TestPlusTrainSplitter

estimator = TestPlusTrainSplitter(cv)

Parameter(1)

cvBaseSplitter
splitter to modify as above

Beispiele

>>> from sktime.datasets import load_airline
>>> from sktime.split import ExpandingWindowSplitter
>>> y = load_airline ()
>>> y_template = y [: 60 ]
>>> cv_tpl = ExpandingWindowSplitter (fh = [2, 4 ], initial_window = 24, step_length = 12)
>>> splitter = TestPlusTrainSplitter (cv_tpl)