Contents

prediction(from:options:)

Predicts output values from the given input features.

Declaration

func prediction(from input: any MLFeatureProvider, options: MLPredictionOptions) throws -> any MLFeatureProvider

Parameters

  • input:

    The feature values the models needs to make its prediction.

  • options:

    The options to be applied to the prediction.

Return Value

A feature provider that represents the model’s prediction.

See Also

Making predictions