timesead.data.transforms.window_transform ========================================= .. py:module:: timesead.data.transforms.window_transform Classes ------- .. autoapisummary:: timesead.data.transforms.window_transform.WindowTransform Module Contents --------------- .. py:class:: WindowTransform(parent: timesead.data.transforms.transform_base.Transform, window_size: int, step_size: int = 1, reverse: bool = False) Bases: :py:obj:`timesead.data.transforms.transform_base.Transform` This :class:`~timesead.data.transforms.Transform` produces sliding windows from input sequences. Incomplete windows (that can appear if ``step_size>1``) will not be returned. :param parent: Another :class:`~timesead.data.transforms.Transform` which is used as the data source for this :class:`~timesead.data.transforms.Transform`. :param window_size: The size of each window. :param step_size: The step size at which the sliding window is moved along the sequence. :param reverse: If this is `True`, start the sliding window at the end of a sequence, instead of the start. Note that this will not reverse the order of sequences in the dataset and only applies within a single sequence. .. py:attribute:: window_size .. py:attribute:: step_size :value: 1 .. py:attribute:: reverse :value: False .. py:method:: inverse_transform_index(item) -> Tuple[int, int] .. py:method:: __len__() .. py:property:: seq_len