Contents

fitted(toPreprocessed:validateOn:eventHandler:)

Fits a composed transformer to a sequence of preprocessed features.

Declaration

func fitted<Input, Validation>(toPreprocessed preprocessedInput: Input, validateOn preprocessedValidation: Validation, eventHandler: EventHandler? = nil) async throws -> PreprocessingSupervisedEstimator<Preprocessor, Estimator>.Transformer where Input : Sequence, Validation : Sequence, Input.Element == AnnotatedFeature<Preprocessor.Output, Estimator.Annotation>, Validation.Element == AnnotatedFeature<Preprocessor.Output, Estimator.Annotation>

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.

See Also

Preprocessing and fitting