Прочетете на английски

Споделяне чрез


LinearMulticlassModelParametersBase.GetWeights Method

Definition

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

C#
public void GetWeights(ref Microsoft.ML.Data.VBuffer<float>[] weights, out int numClasses);

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

Продукт Версии
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, Preview, 4.0.0