fitted(to:validateOn:eventHandler:)
Fits a transformer to a sequence of examples while validating with a validation sequence.
Declaration
func fitted<InputSequence, Validation, FeatureSequence>(to input: InputSequence, validateOn validation: Validation, eventHandler: EventHandler? = nil) async throws -> PreprocessingSupervisedTemporalEstimator<Preprocessor, Estimator>.Transformer where InputSequence : Sequence, Validation : Sequence, FeatureSequence : TemporalSequence, Preprocessor.Input == FeatureSequence.Feature, InputSequence.Element == AnnotatedFeature<FeatureSequence, Estimator.Annotation>, Validation.Element == AnnotatedFeature<FeatureSequence, 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
Preprocesing and Fitting
preprocessed(from:eventHandler:)fitted(to:eventHandler:)fitted(toPreprocessed:eventHandler:)fitted(toPreprocessed:validateOn:eventHandler:)PreprocessingSupervisedTemporalEstimator.AnnotationPreprocessingSupervisedTemporalEstimator.InputPreprocessingSupervisedTemporalEstimator.IntermediatePreprocessingSupervisedTemporalEstimator.OutputTransformer