Contents

fitted(to:eventHandler:)

Fits a transformer to a sequence of examples.

Declaration

func fitted<Input>(to input: Input, eventHandler: EventHandler?) async throws -> Self.Transformer where Input : Sequence, Input.Element == AnnotatedFeature<Self.Transformer.Input, Self.Annotation>

Parameters

  • input:

    A sequence of examples used for fitting the transformer.

  • eventHandler:

    An event handler.

Return Value

The fitted transformer.

See Also

Adapting and fitting