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

# prediction(from:)

Generates a prediction for each action the classifier recognizes in the video.

## Declaration

```swift
func prediction(from video: URL) throws -> [MLActionClassifier.Prediction]
```

## Parameters

- `video`: The location of a video you want the action classifier to analyze.

## Return Value

Return Value An array of predictions.

## See Also

### Testing an action classifier

- [predictions(from:)](createml/mlactionclassifier/predictions(from:).md)
- [MLActionClassifier.Prediction](createml/mlactionclassifier/prediction.md)
