---
title: MLLinearRegressor.ModelParameters
framework: createml
role: symbol
role_heading: Structure
path: createml/mllinearregressor/modelparameters-swift.struct
---

# MLLinearRegressor.ModelParameters

Parameters that affect the process of training a model.

## Declaration

```swift
struct ModelParameters
```

## Topics

### Creating parameters

- [init(validation:maxIterations:l1Penalty:l2Penalty:stepSize:convergenceThreshold:featureRescaling:)](createml/mllinearregressor/modelparameters-swift.struct/init(validation:maxiterations:l1penalty:l2penalty:stepsize:convergencethreshold:featurerescaling:).md)
- [init(validationData:maxIterations:l1Penalty:l2Penalty:stepSize:convergenceThreshold:featureRescaling:)](createml/mllinearregressor/modelparameters-swift.struct/init(validationdata:maxiterations:l1penalty:l2penalty:stepsize:convergencethreshold:featurerescaling:).md)
- [MLLinearRegressor.ModelParameters.ValidationData](createml/mllinearregressor/modelparameters-swift.struct/validationdata-swift.enum.md)

### Accessing parameters

- [validationData](createml/mllinearregressor/modelparameters-swift.struct/validationdata-swift.property.md)
- [maxIterations](createml/mllinearregressor/modelparameters-swift.struct/maxiterations.md)
- [l1Penalty](createml/mllinearregressor/modelparameters-swift.struct/l1penalty.md)
- [l2Penalty](createml/mllinearregressor/modelparameters-swift.struct/l2penalty.md)
- [stepSize](createml/mllinearregressor/modelparameters-swift.struct/stepsize.md)
- [convergenceThreshold](createml/mllinearregressor/modelparameters-swift.struct/convergencethreshold.md)
- [featureRescaling](createml/mllinearregressor/modelparameters-swift.struct/featurerescaling.md)
- [validation](createml/mllinearregressor/modelparameters-swift.struct/validation.md)

### Describing parameters

- [description](createml/mllinearregressor/modelparameters-swift.struct/description.md)
- [debugDescription](createml/mllinearregressor/modelparameters-swift.struct/debugdescription.md)
- [playgroundDescription](createml/mllinearregressor/modelparameters-swift.struct/playgrounddescription.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mllinearregressor/modelparameters-swift.struct/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mllinearregressor/modelparameters-swift.struct/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mllinearregressor/modelparameters-swift.struct/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomPlaygroundDisplayConvertible](swift/customplaygrounddisplayconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)

## See Also

### Inspecting a linear regressor

- [model](createml/mllinearregressor/model.md)
- [modelParameters](createml/mllinearregressor/modelparameters-swift.property.md)
