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

適用於