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

# predictions(from:)

Generates predictions for an array of images.

## Declaration

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

## Parameters

- `images`: An array of images you want the model to classify.

## Return Value

Return Value An array of prediction labels for the images. Each label’s index corresponds to the image’s index in the input array.

## See Also

### Testing an image classifier

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