prediction(from:options:)
Generates a prediction from the feature values within the input feature provider using the prediction options.
Declaration
func prediction(from input: any MLFeatureProvider, options: MLPredictionOptions) throws -> any MLFeatureProviderParameters
- input:
A feature provider that stores all the input feature values the model needs for a prediction.
- options:
The runtime settings the model uses as it makes a prediction.
Return Value
A feature provider that contains the outputs of the prediction.
Discussion
Use this method to make a single prediction.