<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents40MultivariateLinearRegressorConfigurationV"
  },
  "title" : "MultivariateLinearRegressorConfiguration"
}
-->

# MultivariateLinearRegressorConfiguration

A linear regressor configuration.

```
struct MultivariateLinearRegressorConfiguration
```

## Topics

### Creating a configuration

[`init()`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/init())

Creates a default linear regressor configuration.

### Getting the properties

[`var batchSize: Int`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/batchSize)

The number of examples in each training batch.

[`var maximumIterationCount: Int`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/maximumIterationCount)

The maximum number of allowed passes through the data.

[`var earlyStoppingTolerance: Float`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/earlyStoppingTolerance)

The early-stopping tolerance.

[`var earlyStoppingIterationCount: Int`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/earlyStoppingIterationCount)

The number of iterations to use when evaluating whether to stop early.

[`var learningRate: Float`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/learningRate)

The optimizer learning rate.

[`var randomSeed: Int?`](/documentation/CreateMLComponents/MultivariateLinearRegressorConfiguration/randomSeed)

A seed to generate reproducible results from random operations.

## Relationships

### Conforms To

[`Encodable`](/documentation/Swift/Encodable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)