KMeansModelParameters.GetClusterCentroids Method

Definition

Copies the centroids to a set of provided buffers.

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

Parameters

centroids
VBuffer<Single>[]

The buffer to which to copy. Will be extended to an appropriate length, if necessary.

k
Int32

The number of clusters, corresponding to the logical size of centroids.

Applies to