fitted(to:eventHandler:)
Fits a logistic regression classifier model to a sequence of examples while validating with a validation sequence.
Declaration
func fitted<Input>(to input: Input, eventHandler: EventHandler? = nil) async throws -> LogisticRegressionClassifier<Scalar, Label>.Transformer where Input : Sequence, Input.Element == AnnotatedFeature<MLShapedArray<Scalar>, Label>Parameters
- input:
A sequence of examples used for fitting the transformer.
- eventHandler:
An event handler.
Return Value
The fitted transformer.