fitted(to:eventHandler:)
Fits a fully-connected network multi-label classifier model to a sequence of examples.
Declaration
func fitted<Input>(to input: Input, eventHandler: EventHandler? = nil) async throws -> FullyConnectedNetworkMultiLabelClassifierModel<Scalar, Label> where Input : Sequence, Input.Element == AnnotatedFeature<MLShapedArray<Scalar>, Set<Label>>Parameters
- input:
A sequence of examples used for fitting the classifier.
- eventHandler:
An event handler.
Return Value
The fitted fully-connected network multi-label classifier model.
Discussion
The training process partitions the input into random batches according to the batch size configuration parameter. Training stops when the maximum number of iterations is reached.