SlidingWindows
A sequence of windows on a time series shaped array.
Declaration
struct SlidingWindows<Scalar> where Scalar : MLShapedArrayScalarOverview
The shape of each window in the sequence is [length, featureSize]. The sequence will return as many windows as fit in the input. For example, an input shaped array of shape [8, 1] using stride of 1 and length of 4 will produce 5 examples:
[[1], [2], [3], [4]]
[[2], [3], [4], [5]]
[[3], [4], [5], [6]]
[[4], [5], [6], [7]]
[[5], [6], [7], [8]]Topics
Creating a sliding window
Inspecting the sliding window
Getting the index
Getting the subscript
See Also
Time-based components
Creating a time-series classifierCreating a time-series forecasterDateFeaturesDateFeatureExtractorLinearTimeSeriesForecasterLinearTimeSeriesForecasterConfigurationTimeSeriesForecasterBatchesTimeSeriesForecasterAnnotatedWindowsTemporalFeatureTemporalSequenceTemporalSegmentIdentifierSlidingWindowTransformerDownsamplerVideoReaderTemporalFileSegment