CreateMLComponents · IOS API REFERENCE
SlidingWindows
struct · iOS 18.0+ · SDK 27.1
struct SlidingWindows<Scalar> where Scalar : MLShapedArrayScalarA sequence of windows on a time series shaped array. 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]] ```
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
No declarations were skipped in this snapshot.