Contents

init(weight:bias:)

Creates a multivariate linear regressor.

Declaration

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

Parameters

  • weight:

    A shaped array of linear weights.

  • bias:

    A one-dimensional shaped array of biases.