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