<!--
{
  "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/MLStyleTransfer/ModelParameters/ModelAlgorithmType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML15MLStyleTransferV15ModelParametersV0E13AlgorithmTypeO"
  },
  "title" : "MLStyleTransfer.ModelParameters.ModelAlgorithmType"
}
-->

# MLStyleTransfer.ModelParameters.ModelAlgorithmType

The style transfer training algorithm options.

```
enum ModelAlgorithmType
```

## Overview

This object uses a convolutional neural network for training the style transfer model, giving more detailed
style. It’s ideal for cases where latency is not the main concern, such as single images.

## Topics

### Selecting an algorithm type

[`case cnn`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/cnn)

A style-transfer training algorithm that generates a model that prioritizes image quality over speed.

[`case cnnLite`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/cnnLite)

A style-transfer training algorithm that generates a model that prioritizes speed over image quality.

### Describing an algorithm type

[`var description: String`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/description)

A text representation of the model parameters.

[`var debugDescription: String`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/debugDescription)

A text representation of the model parameters that’s suitable for output during debugging.

[`var playgroundDescription: Any`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/playgroundDescription)

A description of the model parameters shown in a playground.

### Default Implementations

[CustomDebugStringConvertible Implementations](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/CustomDebugStringConvertible-Implementations)

[CustomPlaygroundDisplayConvertible Implementations](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/CustomPlaygroundDisplayConvertible-Implementations)

[CustomStringConvertible Implementations](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType/CustomStringConvertible-Implementations)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)