---
title: "prediction(from:options:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlmodel/prediction(from:options:)-81mr6"
---

# prediction(from:options:)

Generates a prediction from the feature values within the input feature provider using the prediction options.

## Declaration

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

## Parameters

- `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

Return Value A feature provider that contains the outputs of the prediction.

## Discussion

Discussion Use this method to make a single prediction.
