---
title: "prediction(from:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/regressor/prediction(from:)"
---

# prediction(from:)

Performs a prediction from a single input.

## Declaration

```swift
func prediction(from input: Self.Input) async throws -> Self.Output
```

## Parameters

- `input`: The input feature.

## Return Value

Return Value A regression.
