Share via


LinearMulticlassModelParametersBase.GetWeights Method

Definition

Copies the weight vector for each class into a set of buffers.

public void GetWeights (ref Microsoft.ML.Data.VBuffer<float>[] weights, out int numClasses);
member this.GetWeights : VBuffer * int -> unit
Public Sub GetWeights (ByRef weights As VBuffer(Of Single)(), ByRef numClasses As Integer)

Parameters

weights
VBuffer<Single>[]

A possibly reusable set of vectors, which will be expanded as necessary to accommodate the data.

numClasses
Int32

Set to the rank, which is also the logical length of weights.

Applies to