Liking cljdoc? Tell your friends :D

josh.meanings.kmeans

K-Means clustering generates a specific number of disjoint, non-hierarchical clusters. It is well suited to generating globular clusters. The K-Means method is numerical, unsupervised, non-deterministic and iterative. Every member of a cluster is closer to its cluster center than the center of any other cluster.

The choice of initial partition can greatly affect the final clusters that result, in terms of inter-cluster and intracluster distances and cohesion. As a result k means is best run multiple times in order to avoid the trap of a local minimum.

K-Means clustering generates a specific number of disjoint, 
 non-hierarchical clusters. It is well suited to generating globular
 clusters. The K-Means method is numerical, unsupervised, 
 non-deterministic and iterative. Every member of a cluster is closer 
 to its cluster center than the center of any other cluster.

The choice of initial partition can greatly affect the final clusters 
that result, in terms of inter-cluster and intracluster distances and 
cohesion. As a result k means is best run multiple times in order to 
avoid the trap of a local minimum.
raw docstring

assign-clustersclj

(assign-clusters k-means-state)
source

calculate-objectiveclj

(calculate-objective k-means-state)
source

default-distance-fnclj

source

default-formatclj

source

default-initclj

source

default-run-countclj

source

estimate-sizeclj

(estimate-size config)

Estimates the number of records in the dataset.

Estimates the number of records in the dataset.
sourceraw docstring

find-closest-centroidclj

(find-closest-centroid configuration)
source

initialize-centroids!clj

(initialize-centroids! k-means-state)
source

initialize-k-means-stateclj

(initialize-k-means-state points-file k options)

Sets initial configuration options for the k means calculation.

Sets initial configuration options for the k means calculation.
sourceraw docstring

k-meanscljmultimethod

source

k-means-seqclj

(k-means-seq dataset k & options)

Returns a lazy sequence of m ClusterResult.

Returns a lazy sequence of m ClusterResult.
sourceraw docstring

recalculate-meansclj

(recalculate-means k-means-state)
source

stabilized?clj

(stabilized? centroids-1 centroids-2)

K-means is said to be stabilized when performing an iterative refinement (often called a lloyd iteration), does not result in any shifting of points between clusters. A stabilized k-means calculation can be stopped, because further refinement won't produce any changes.

K-means is said to be stabilized when performing an
iterative refinement (often called a lloyd iteration), 
does not result in any shifting of points between 
clusters. A stabilized k-means calculation can be 
stopped, because further refinement won't produce 
any changes.
sourceraw docstring

update-centroidsclj

(update-centroids k-means-state)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close