KMeansModelParameters.GetClusterCentroids 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 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
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
.