prediction(from:)
Generates a prediction from the feature values within the input feature provider.
Declaration
func prediction(from input: any MLFeatureProvider) throws -> any MLFeatureProviderParameters
- input:
A feature provider that stores all the input feature values the model needs for a prediction.
Mentioned in
Return Value
A feature provider that contains the outputs of the prediction.
Discussion
Use this method to make a single prediction.