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

# prediction(from:options:)

Predicts output values from the given input features.

## Declaration

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

Return Value A feature provider that represents the model’s prediction.

## See Also

### Making predictions

- [predictions(from:options:)](coreml/mlcustommodel/predictions(from:options:).md)
