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

# prediction(from:)

Generates a hand pose prediction for an image.

## Declaration

```swift
func prediction(from image: URL) throws -> [(label: String, confidence: Double)]
```

## Parameters

- `image`: An image file URL.

## Return Value

Return Value An array of prediction tuples.

## Discussion

Discussion Each prediction consists of an array of tuples that pair a classification label with the model’s confidence in that label.

## See Also

### Testing a hand pose classifier

- [predictions(from:)](createml/mlhandposeclassifier/predictions(from:).md)
