---
title: "init(validationData:maxIterations:penalty:convergenceThreshold:featureRescaling:)"
framework: createml
role: symbol
role_heading: Initializer
path: "createml/mlsupportvectorclassifier/modelparameters-swift.struct/init(validationdata:maxiterations:penalty:convergencethreshold:featurerescaling:)"
---

# init(validationData:maxIterations:penalty:convergenceThreshold:featureRescaling:)

Creates a new set of parameters.

## Declaration

```swift
init(validationData: MLDataTable?, maxIterations: Int = 11, penalty: Double = 1.0, convergenceThreshold: Double = 0.01, featureRescaling: Bool = true)
```

## Parameters

- `validationData`: The dataset used to monitor how well the model is generalizing. The default value is nil which will use an automatically sampled validation set.
- `maxIterations`: The maximum number of passes through the data. The default value is 11.
- `penalty`: Weight of the regularizer. The larger the penalty the less variance in the model. The default value is 1.0.
- `convergenceThreshold`: The threshold with which to determine if the model has converged. Consider reducing this value for higher training accuracy, but beware of overfitting. The default value is 0.01.
- `featureRescaling`: Determines if the features should be preprocessed to ensure all features are on the same scale. The default value is true.

## See Also

### Creating parameters

- [init(validation:maxIterations:penalty:convergenceThreshold:featureRescaling:)](createml/mlsupportvectorclassifier/modelparameters-swift.struct/init(validation:maxiterations:penalty:convergencethreshold:featurerescaling:).md)
- [MLSupportVectorClassifier.ModelParameters.ValidationData](createml/mlsupportvectorclassifier/modelparameters-swift.struct/validationdata-swift.enum.md)
