Class | Ai4r::Clusterers::KMeans |
In: |
lib/ai4r/clusterers/k_means.rb
|
Parent: | Clusterer |
The k-means algorithm is an algorithm to cluster n objects based on attributes into k partitions, with k < n.
More about K Means algorithm: en.wikipedia.org/wiki/K-means_algorithm
centroids | [R] | |
clusters | [R] | |
data_set | [R] | |
iterations | [R] | |
number_of_clusters | [R] |
Build a new clusterer, using data examples found in data_set. Items will be clustered in "number_of_clusters" different clusters.