fitted(toPreprocessed:validateOn:eventHandler:)
Fits a composed transformer to a sequence of examples.
Declaration
func fitted<InputSequence, Validation>(toPreprocessed preprocessedInput: InputSequence, validateOn preprocessedValidation: Validation, eventHandler: EventHandler? = nil) async throws -> PreprocessingUpdatableSupervisedEstimator<Preprocessor, Estimator>.Transformer where InputSequence : Sequence, Validation : Sequence, InputSequence.Element == AnnotatedFeature<Preprocessor.Output, Estimator.Annotation>, Validation.Element == AnnotatedFeature<Preprocessor.Output, Estimator.Annotation>Parameters
- preprocessedInput:
A sequence of preprocessed features used for fitting the transformer.
- preprocessedValidation:
A sequence of preprocessed features used for validating the fitted transformer.
- eventHandler:
An event handler.
Return Value
The fitted transformer.
See Also
Preprocesing and fitting
preprocessed(from:eventHandler:)fitted(to:eventHandler:)fitted(toPreprocessed:eventHandler:)fitted(to:validateOn:eventHandler:)makeTransformer()update(_:with:eventHandler:)update(_:withPreprocessed:eventHandler:)PreprocessingUpdatableSupervisedEstimator.AnnotationPreprocessingUpdatableSupervisedEstimator.InputPreprocessingUpdatableSupervisedEstimator.IntermediatePreprocessingUpdatableSupervisedEstimator.OutputTransformer