SlidingWindowTransform#
- class myoverse.transforms.SlidingWindowTransform(window_size, stride=None, dim='time', **kwargs)[source]#
Base class for sliding window transforms (GPU-accelerated).
Handles the common pattern of unfold + reduce over sliding windows. Subclasses only need to implement _compute_window to define the window-wise computation.
- Parameters:
Methods
__init__(window_size[, stride, dim])_apply(x)Apply the transform.
_compute_window(x_unfolded)Compute the window-wise statistic.