共用方式為


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 邏輯長度。

適用於