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

# predictions(from:)

Generates an array of hand pose predictions for each image in a URL array.

## Declaration

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

## Parameters

- `images`: An array of image file URLs.

## Return Value

Return Value An array of a prediction tuple arrays.

## Discussion

Discussion Each prediction consists of an array of tuples that pair a classification label with the model’s confidence for that label. The method returns an array of prediction arrays, where each element of the outer array is the prediction for the corresponding URL element in images.

## See Also

### Testing a hand pose classifier

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