---
title: VNCoreMLModel
framework: vision
role: symbol
role_heading: Class
path: vision/vncoremlmodel
---

# VNCoreMLModel

A container for the model to use with Vision requests.

## Declaration

```swift
class VNCoreMLModel
```

## Overview

Overview A Core ML model encapsulates the information trained from a data set used to drive Vision recognition requests. See Getting a Core ML Model for instructions on training your own model. Once you train the model, use this class to initialize a VNCoreMLRequest for identification.

## Topics

### Initializing a Model

- [init(for:)](vision/vncoremlmodel/init(for:).md)

### Providing Features

- [featureProvider](vision/vncoremlmodel/featureprovider.md)
- [inputImageFeatureName](vision/vncoremlmodel/inputimagefeaturename.md)

### Initializers

- [init(forMLModel:)](vision/vncoremlmodel/init(formlmodel:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Initializing with a Core ML Model

- [init(model:)](vision/vncoremlrequest/init(model:).md)
- [init(model:completionHandler:)](vision/vncoremlrequest/init(model:completionhandler:).md)
- [model](vision/vncoremlrequest/model.md)
