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

# predictions(from:)

Generates a sequence of predictions for each video input.

## Declaration

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

## Parameters

- `videos`: An array of locations to videos you want the action classifier to analyze.

## Return Value

Return Value A array of prediction arrays. The index of each inner array corresponds to the video index in the input array.

## See Also

### Testing an action classifier

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