Contents

applied(to:eventHandler:)

Performs a prediction from a single input.

Declaration

func applied(to input: MLShapedArray<Scalar>, eventHandler: EventHandler? = nil) async throws -> ClassificationDistribution<MLModelClassifierAdaptor<Scalar>.Label>

Parameters

  • input:

    The input feature.

  • eventHandler:

    An event handler.

Return Value

A classification distribution.

See Also

Performing the transformation