train(trainingData:parameters:sessionParameters:)
Begins an asynchronous sound classifier training session with a training dataset represented by a data source.
Declaration
static func train(trainingData: MLSoundClassifier.DataSource, parameters: MLSoundClassifier.ModelParameters = ModelParameters(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLJob<MLSoundClassifier>Parameters
- trainingData:
A collection of labeled audio files represented by an Datasource.
- 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 MLJob that represents the sound classifier training session.