Contents

train(trainingData:annotationType:parameters:sessionParameters:)

Begins an asynchronous object-detector training session.

Declaration

static func train(trainingData: MLObjectDetector.DataSource, annotationType: MLObjectDetector.AnnotationType, parameters: MLObjectDetector.ModelParameters = ModelParameters(), sessionParameters: MLTrainingSessionParameters = __Defaults.sessionParameters) throws -> MLJob<MLObjectDetector>

Parameters

  • trainingData:

    The annotated images the task uses to train the object detector.

  • annotationType:

    The format your data source uses for its image annotations.

  • parameters:

    An Modelparameters Swift.struct instance you use to set the model configuration settings for the training session.

  • sessionParameters:

    An Mltrainingsessionparameters instance you use to configure the training session.

Return Value

An MLJob that represents the object-detector training session.

See Also

Training an object detector asynchronously