---
title: "init(validation:maxIterations:overlapFactor:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mlsoundclassifier/modelparameters-swift.struct/init(validation:maxiterations:overlapfactor:)"
---

# init(validation:maxIterations:overlapFactor:)

Creates a new set of training parameters for a sound classifier with a validation dataset.

## Declaration

```swift
init(validation: MLSoundClassifier.ModelParameters.ValidationData = .split(strategy: .automatic), maxIterations: Int = 25, overlapFactor: Double = 0.5)
```

## Parameters

- `validation`: A validation dataset represented by an doc://com.apple.createml/documentation/CreateML/MLSoundClassifier/ModelParameters-swift.struct/ValidationData instance.
- `maxIterations`: The largest number of iterations the training session can use to train the sound classifier.
- `overlapFactor`: A proportion of overlap the training session uses to analyze two consecutive windows in the audio data. The proportion must be in the range [0.0, 1.0). Higher proportions generate more training data, but also increases the training time. The default value is 0.5, which represents a 50% overlap.

## See Also

### Creating parameters

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