<!--
{
  "availability" : [
    "iOS: 16.0.0 - 18.0.0",
    "iPadOS: 16.0.0 - 18.0.0",
    "macCatalyst: 16.0.0 - 18.0.0",
    "macOS: 13.0.0 - 15.0.0",
    "tvOS: 16.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/PreprocessingUpdatableSupervisedTemporalEstimator/fitted(toPreprocessed:validateOn:eventHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents49PreprocessingUpdatableSupervisedTemporalEstimatorV6fitted14toPreprocessed10validateOn12eventHandlerAA08ComposedF11TransformerVyx0P0Qy_GSayAA16AnnotatedFeatureVyAA0jR8SequenceVy6OutputQzG10AnnotationQy_GG_AWyAA5EventVYbcSgtYaKF"
  },
  "title" : "fitted(toPreprocessed:validateOn:eventHandler:)"
}
-->

# fitted(toPreprocessed:validateOn:eventHandler:)

Fits a transformer to a sequence of preprocessed features while validating.

```
func fitted(toPreprocessed preprocessedInput: [AnnotatedFeature<PreprocessedFeatureSequence<Preprocessor.Output>, PreprocessingUpdatableSupervisedTemporalEstimator<Preprocessor, Estimator>.Annotation>], validateOn preprocessedValidation: [AnnotatedFeature<PreprocessedFeatureSequence<Preprocessor.Output>, PreprocessingUpdatableSupervisedTemporalEstimator<Preprocessor, Estimator>.Annotation>], eventHandler: EventHandler? = nil) async throws -> PreprocessingUpdatableSupervisedTemporalEstimator<Preprocessor, Estimator>.Transformer
```

## Parameters

`preprocessedInput`

A sequence of preprocessed features.

`preprocessedValidation`

A sequence of preprocessed features used for validating the fitted transformer.

`eventHandler`

An event handler.

## Return Value

The fitted 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)