applied(to:eventHandler:)
Performs a classification on a shaped array of input features.
Declaration
func applied(to input: MLShapedArray<Scalar>, eventHandler: EventHandler? = nil) async throws -> ClassificationDistribution<Label>Parameters
- input:
A shaped array of input features. The shape must
[sequenceLength, featureSize]. - eventHandler:
An event handler.
Return Value
A classification distribution.