---
title: algorithm
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mlsoundclassifier/modelparameters-swift.struct/algorithm
---

# algorithm

The algorithm the training session uses to train the sound classifier.

## Declaration

```swift
var algorithm: MLSoundClassifier.ModelParameters.ModelAlgorithmType { get set }
```

## See Also

### Accessing the training parameters

- [validation](createml/mlsoundclassifier/modelparameters-swift.struct/validation.md)
- [maxIterations](createml/mlsoundclassifier/modelparameters-swift.struct/maxiterations.md)
- [overlapFactor](createml/mlsoundclassifier/modelparameters-swift.struct/overlapfactor.md)
- [featureExtractionTimeWindowSize](createml/mlsoundclassifier/modelparameters-swift.struct/featureextractiontimewindowsize.md)
