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

# MLStyleTransfer.ModelParameters

Parameters that affect the training process of a style transfer model.

```
struct ModelParameters
```

## Topics

### Creating parameters

[`init(algorithm: MLStyleTransfer.ModelParameters.ModelAlgorithmType, validation: MLStyleTransfer.ModelParameters.ValidationData, maxIterations: Int, textelDensity: Int, styleStrength: Int)`](/documentation/CreateML/MLStyleTransfer/ModelParameters/init(algorithm:validation:maxIterations:textelDensity:styleStrength:))

Creates a new set of training parameters for a style transfer model.

### Setting style transfer parameters

[`var algorithm: MLStyleTransfer.ModelParameters.ModelAlgorithmType`](/documentation/CreateML/MLStyleTransfer/ModelParameters/algorithm)

The style transfer task’s training algorithm that prioritizes either speed or quality.

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

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

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

A text representation of the style transfer model parameters.

[`var maxIterations: Int`](/documentation/CreateML/MLStyleTransfer/ModelParameters/maxIterations)

The largest number of iterations the style transfer model can use during training.

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

A description of the style transfer model parameters shown in a playground.

[`var styleStrength: Int`](/documentation/CreateML/MLStyleTransfer/ModelParameters/styleStrength)

The amount of influence the input style image has in the stylized image output.

[`var textelDensity: Int`](/documentation/CreateML/MLStyleTransfer/ModelParameters/textelDensity)

The amount of detail the task applies from the input style image to the stylized image output.

[`var validation: MLStyleTransfer.ModelParameters.ValidationData`](/documentation/CreateML/MLStyleTransfer/ModelParameters/validation)

The style transfer model’s validation dataset.

### Describing parameters

[`enum ModelAlgorithmType`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ModelAlgorithmType)

The style transfer training algorithm options.

[`enum ValidationData`](/documentation/CreateML/MLStyleTransfer/ModelParameters/ValidationData)

The source of a validation dataset for a style transfer model.

### Default Implementations

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

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

---

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)