makeTrainingSession(trainingData:parameters:sessionParameters:)
Creates an asynchronous training session for a sound classifier.
Declaration
static func makeTrainingSession(trainingData: MLSoundClassifier.DataSource, parameters: MLSoundClassifier.ModelParameters = .init(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLTrainingSession<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 MLTrainingSession that represents the sound classifier training session.