LinearMulticlassModelParametersBase.GetWeights Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
.