Contents

applied(toWindow:eventHandler:)

Performs a prediction on a window of input features.

Declaration

func applied(toWindow input: MLShapedArray<Scalar>, eventHandler: EventHandler? = nil) async throws -> MLShapedArray<Scalar>

Parameters

  • input:

    An window of input features with shape [inputWindowSize, featureSize].

  • eventHandler:

    An event handler.

Return Value

A shaped array of predictions with shape [forecastWindowSize, annotationSize].

See Also

Applying the model