update(_:with:validateOn:eventHandler:)
Fits a transformer to a sequence of examples while validating with a validation sequence.
Declaration
func update<InputSequence, Validation>(_ transformer: inout Estimator.Transformer, with input: InputSequence, validateOn validation: Validation, eventHandler: EventHandler? = nil) async throws where InputSequence : Sequence, Validation : Sequence, InputSequence.Element == AnnotatedFeature<Estimator.Transformer.Input, Annotation>, Validation.Element == AnnotatedFeature<Estimator.Transformer.Input, Annotation>Parameters
- transformer:
A transformer to update.
- input:
A sequence of examples.
- validation:
A sequence of examples used for validation.
- eventHandler:
An event handler.