<!--
{
  "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/MaxAbsScaler/Transformer",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents12MaxAbsScalerV11TransformerV"
  },
  "title" : "MaxAbsScaler.Transformer"
}
-->

# MaxAbsScaler.Transformer

An transformer that scales the input values so that the maximum absolute value is 1.0.

```
struct Transformer
```

## Topics

### Creating a transformer

[`init(maximumAbsoluteValue: Element)`](/documentation/CreateMLComponents/MaxAbsScaler/Transformer/init(maximumAbsoluteValue:))

Creates a max abs scaling transformer.

### Getting the absolute value

[`var maximumAbsoluteValue: Element`](/documentation/CreateMLComponents/MaxAbsScaler/Transformer/maximumAbsoluteValue)

The fitted maximum absolute value.

### Performing the transformation

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

Scales the input values by `1 / maximumAbsoluteValue`.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)