<!--
{
  "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/MultivariateLinearRegressor/Model/init(weight:bias:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents27MultivariateLinearRegressorV5ModelV6weight4biasAEyx_G6CoreML13MLShapedArrayVyxG_ALSgtcfc"
  },
  "title" : "init(weight:bias:)"
}
-->

# init(weight:bias:)

Creates a multivariate linear regressor.

```
init(weight: MLShapedArray<Scalar>, bias: MLShapedArray<Scalar>?)
```

## Parameters

`weight`

A shaped array of linear weights.

`bias`

A one-dimensional shaped array of biases.

---

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)