Transformer
TSBootstrapAdapter
Adapter for TSBootstrap.
Quickstart
python
from sktime.transformations.bootstrap import TSBootstrapAdapter
estimator = TSBootstrapAdapter(bootstrap, include_actual=False, return_indices=False)Parameters(3)
- bootstrapbootstrap from tsbootstrap
- The splitter used for the bootstrap splitting.
- include_actualbool, default=False
- Whether to include the actual data in the output.
- return_indicesbool, optional
- If True, the output will contain the resampled indices as extra column, by default False.
Examples
>>> from sktime.datasets import load_airline
>>> from sktime.transformations.bootstrap import TSBootstrapAdapter
>>> from tsbootstrap import MovingBlockBootstrap,
>>> y = load_airline ()
>>> bootstrap = TSBootstrapAdapter (
... MovingBlockBootstrap (n_bootstrap = 10, block_length = 10)
... )
>>> result = bootstrap. fit_transform (y)