makeTrainingSession(trainingData:parameters:sessionParameters:)
Creates an asynchronous training session for an action classifier.
Declaration
static func makeTrainingSession(trainingData: MLActionClassifier.DataSource, parameters: MLActionClassifier.ModelParameters = .init(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLTrainingSession<MLActionClassifier>Parameters
- trainingData:
A collection of labeled videos represented by a data source.
- parameters:
An Modelparameters Swift.struct instance you use to configure the model for the training session.
- sessionParameters:
An Mltrainingsessionparameters instance you use to configure the training session.
Return Value
An MLTrainingSession that represents the action classifier training session.