語言

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大小。

適用於