<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLImageClassifier/ModelParameters-swift.struct/ClassifierType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML17MLImageClassifierV15ModelParametersV0D4TypeO"
  },
  "title" : "MLImageClassifier.ModelParameters.ClassifierType"
}
-->

# MLImageClassifier.ModelParameters.ClassifierType

Type of classifier to be used.

```
enum ClassifierType
```

## Topics

### Designating an algorithm’s classifier

[`case logisticRegressor`](/documentation/CreateML/MLImageClassifier/ModelParameters-swift.struct/ClassifierType/logisticRegressor)

Logistic regression is a statistical model that classifies input feature vector into different categories.

[`case multilayerPerceptron(layerSizes: [Int])`](/documentation/CreateML/MLImageClassifier/ModelParameters-swift.struct/ClassifierType/multilayerPerceptron(layerSizes:))

Multilayer perceptron, layerSizes holds a list of positive integers that represent the number of hidden
units in each layer. An additional fully connected layer with a Softmax activation output will be added
that maps to probabilities of sound categories.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)