---
title: "MLSoundClassifier.ModelParameters.ClassifierType.multilayerPerceptron(layerSizes:)"
framework: createml
role: symbol
role_heading: Case
path: "createml/mlsoundclassifier/modelparameters-swift.struct/classifiertype/multilayerperceptron(layersizes:)"
---

# MLSoundClassifier.ModelParameters.ClassifierType.multilayerPerceptron(layerSizes:)

A neural network model that uses three or more layers to classify an input into a category.

## Declaration

```swift
case multilayerPerceptron(layerSizes: [Int])
```

## Parameters

- `layerSizes`: An array of positive integers. Each element represents the number of units for that hidden layer.

## Discussion

Discussion The neural network has a minimum of three layers: An input layer One or more hidden layers An output layer The number of integers in your layerSizes array determines the number of hidden layers in the neural network. Each integer in the array determines the size of that hidden layer.

## See Also

### Designating an algorithm’s classifier

- [MLSoundClassifier.ModelParameters.ClassifierType.logisticRegressor](createml/mlsoundclassifier/modelparameters-swift.struct/classifiertype/logisticregressor.md)
