<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/NormalizationScaler/Transformer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents19NormalizationScalerV11TransformerV"
  },
  "title" : "NormalizationScaler.Transformer"
}
-->

# NormalizationScaler.Transformer

A transformer that scales the input using a normalization strategy.

```
struct Transformer
```

## Topics

### Creating a transformer

[`init(scale: Element)`](/documentation/CreateMLComponents/NormalizationScaler/Transformer/init(scale:))

Creates a normalization scaling transformer.

### Getting the scale

[`var scale: Element`](/documentation/CreateMLComponents/NormalizationScaler/Transformer/scale)

The normalization scale used to scale the input.

### Performing the transformation

[`func applied(to: Element, eventHandler: EventHandler?) -> Element`](/documentation/CreateMLComponents/NormalizationScaler/Transformer/applied(to:eventHandler:))

Scales the input values using the calculation `input / scale`.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

[`Transformer`](/documentation/CreateMLComponents/Transformer)

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

---

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)