---
title: "fitted(to:validateOn:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/supervisedestimator/fitted(to:validateon:)"
---

# fitted(to:validateOn:)

## Declaration

```swift
func fitted<Input, Validation>(to input: Input, validateOn validation: Validation) async throws -> Self.Transformer where Input : Sequence, Validation : Sequence, Input.Element == AnnotatedFeature<Self.Transformer.Input, Self.Annotation>, Validation.Element == AnnotatedFeature<Self.Transformer.Input, Self.Annotation>
```

## See Also

### Adapting and fitting

- [adaptedAsTemporal()](createmlcomponents/supervisedestimator/adaptedastemporal().md)
- [fitted(to:eventHandler:)](createmlcomponents/supervisedestimator/fitted(to:eventhandler:).md)
- [fitted(to:validateOn:eventHandler:)](createmlcomponents/supervisedestimator/fitted(to:validateon:eventhandler:).md)
- [fitted(to:)](createmlcomponents/supervisedestimator/fitted(to:).md)
