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

# Augmenter

An augmenter.

```
struct Augmenter<RandomTransformer, RandomNumberGenerator> where RandomTransformer : RandomTransformer, RandomNumberGenerator : RandomNumberGenerator, RandomTransformer.Input == RandomTransformer.Output
```

## Topics

### Creating an augmenter

[`init<Input>(generator: RandomNumberGenerator, () -> RandomTransformer)`](/documentation/CreateMLComponents/Augmenter/init(generator:_:))

Creates an augmenter from a random number generator and an augmentation builder.

### Applying an augmentation

[`func applied<S, Annotation>(to: S) -> AugmentationSequence<S, RandomTransformer, RandomNumberGenerator, Annotation>`](/documentation/CreateMLComponents/Augmenter/applied(to:))

Applies an augmentation per input of the base sequence.

[`func applied<C, Annotation>(to: C, upsampledBy: Int) -> UpsampledAugmentationSequence<C, RandomTransformer, RandomNumberGenerator, Annotation>`](/documentation/CreateMLComponents/Augmenter/applied(to:upsampledBy:))

Applies an augmentation repeatedly to an array of inputs.



---

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)