KMeansModelParameters.GetClusterCentroids 方法

定义

将质心复制到一组提供的缓冲区。

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)

参数

centroids
VBuffer<Single>[]

要复制到的缓冲区。 如有必要,将扩展到适当的长度。

k
Int32

与逻辑大小 centroids对应的群集数。

适用于