Structure

MLSoundClassifier.ModelParameters

A structure that describes additional model parameters that you can set on the sound classifier.

Declaration

struct MLSoundClassifier.ModelParameters

Topics

Configuring Model Training

var maxIterations: Int

The maximum number of training iterations to perform.

var overlapFactor: Double

The percentage of overlap between two consecutive audio analysis windows when generating training data.

Validating the Model

var validationData: [String : [URL]]?

Validation data to use during model training.

Deprecated

Describing Parameters

var description: String

A string representation of the model parameters.

var debugDescription: String

A string representation of the model parameters that’s suitable for output during debugging.

var playgroundDescription: Any

A description of the parameters shown in a playground.

See Also

Creating and Training a Sound Classifier

init(trainingData: [String : [URL]], parameters: MLSoundClassifier.ModelParameters)

Creates a sound classifier from a training data set represented by a dictionary.

init(trainingData: MLSoundClassifier.DataSource, parameters: MLSoundClassifier.ModelParameters)

Creates a sound classifier from a training data set represented by a data source.

enum MLSoundClassifier.DataSource

An enumeration that describes various ways to label audio-file URLs stored on disk.

let modelParameters: MLSoundClassifier.ModelParameters

The configuration parameters used to train the model during initialization.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software