---
title: "applied(to:upsampledBy:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/augmenter/applied(to:upsampledby:)"
---

# applied(to:upsampledBy:)

Applies an augmentation repeatedly to an array of inputs.

## Declaration

```swift
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.

## Mentioned in

Augmenting images to expand your training data

## Return Value

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

## See Also

### Applying an augmentation

- [applied(to:)](createmlcomponents/augmenter/applied(to:).md)
