Contents

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