restoreTrainingSession(sessionParameters:)
Creates an asynchronous training session for an object detector by restoring an existing training session’s state from its parameters.
Declaration
static func restoreTrainingSession(sessionParameters: MLTrainingSessionParameters) throws -> MLTrainingSession<MLObjectDetector>Parameters
- sessionParameters:
The Mltrainingsessionparameters instance you used to create the training session with Maketrainingsession(trainingdata:annotationtype:parameters:sessionparameters:).
Return Value
An MLTrainingSession that represents the object-detector training session.
Discussion
Use resume(_:) to start the MLTrainingSession instance you get from this method.