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

# prediction(from:)

Generates an array of hand-action predictions for a video.

## Declaration

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

## Parameters

- `video`: A video file URL.

## See Also

### Testing a hand action classifier

- [predictions(from:)](createml/mlhandactionclassifier/predictions(from:).md)
- [MLHandActionClassifier.Prediction](createml/mlhandactionclassifier/prediction.md)
