<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/prediction(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV10prediction4fromSayAC10PredictionVG10Foundation3URLV_tKF"
  },
  "title" : "prediction(from:)"
}
-->

# prediction(from:)

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

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

## Parameters

`video`

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

## Return Value

An array of predictions.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)