---
title: "init(modelPath:outputName:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mlimageclassifier/customfeatureextractor/init(modelpath:outputname:)"
---

# init(modelPath:outputName:)

Creates a custom feature extractor given a model file and an optional output layer name.

## Declaration

```swift
init(modelPath: URL, outputName: String? = nil)
```

## Parameters

- `modelPath`: The location of the neural network .mlmodel which contains the feature extractor.
- `outputName`: The name of a feature extraction layer within the model has one output type of doc://com.apple.documentation/documentation/CoreML/MLMultiArray. Set this value to nil if the model, as a whole, accepts an input image and has exactly one output of type doc://com.apple.documentation/documentation/CoreML/MLMultiArray.
