mirror of
https://github.com/muesli/kmeans.git
synced 2025-11-03 01:33:21 +08:00
Rename Run to Partition
This commit is contained in:
@@ -21,7 +21,7 @@ func main() {
|
||||
fmt.Printf("%d data points\n", len(d))
|
||||
|
||||
// Partition the data points into 4 clusters
|
||||
clusters, _ := km.Run(d, 4)
|
||||
clusters, _ := km.Partition(d, 4)
|
||||
|
||||
for i, c := range clusters {
|
||||
fmt.Printf("Cluster: %d\n", i)
|
||||
|
||||
Reference in New Issue
Block a user