<!--
{
  "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/applied(to:upsampledBy:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents9AugmenterV7applied2to11upsampledByAA29UpsampledAugmentationSequenceVyqd__xq_qd_0_Gqd___SitSlRd__SQRd_0_AA16AnnotatedFeatureVy5InputQzqd_0_G7ElementRtd__r0_lF"
  },
  "title" : "applied(to:upsampledBy:)"
}
-->

# applied(to:upsampledBy:)

Applies an augmentation repeatedly to an array of inputs.

```
func applied<C, Annotation>(to elements: C, upsampledBy count: Int) -> UpsampledAugmentationSequence<C, RandomTransformer, RandomNumberGenerator, Annotation> where C : Collection, Annotation : Equatable, C.Element == AnnotatedFeature<RandomTransformer.Input, Annotation>
```

## Parameters

`elements`

A collection of elements to augment.

`count`

The number of times to shuffle and augment the input elements. Must be at least one.

## Return Value

A sequence of augmented elements having `count` times the number of elements in the input collection.

---

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)