prediction(from:)
Performs a prediction from a single input.
Declaration
func prediction<Label>(from input: Self.Input) async throws -> ClassificationDistribution<Label> where Label : Hashable, Self.Output == ClassificationDistribution<Label>Parameters
- input:
The input feature.
Return Value
A classification array.