LinearMulticlassModelParametersBase.GetWeights 方法

定义

将每个类的权重向量复制到一组缓冲区中。

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)

参数

weights
VBuffer<Single>[]

一组可能可重用的向量,该向量将根据需要进行扩展以容纳数据。

numClasses
Int32

设置为排名,这也是逻辑长度 weights

适用于