Contents

fitted(to:validateOn:eventHandler:)

Fits a composed transformer to a sequence of examples.

Declaration

func fitted<InputSequence, Validation>(to input: InputSequence, validateOn validation: Validation, eventHandler: EventHandler? = nil) async throws -> PreprocessingSupervisedEstimator<Preprocessor, Estimator>.Transformer where InputSequence : Sequence, Validation : Sequence, InputSequence.Element == AnnotatedFeature<Preprocessor.Input, Estimator.Annotation>, Validation.Element == AnnotatedFeature<Preprocessor.Input, Estimator.Annotation>

Parameters

  • input:

    A sequence of examples used for fitting the transformer.

  • validation:

    A sequence of examples used for validating the fitted transformer.

  • eventHandler:

    An event handler.

Return Value

The fitted transformer.

See Also

Preprocessing and fitting