| Copyright | (c) 2015 Kai Zhang |
|---|---|
| License | MIT |
| Maintainer | kai@kzhang.org |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
AI.Clustering.KMeans
Contents
Description
Kmeans clustering
Documentation
Results from running kmeans
Constructors
| KMeans | |
Arguments
| :: PrimMonad m | |
| => Gen (PrimState m) | |
| -> Initialization | |
| -> Int | number of clusters |
| -> Matrix Double | each row represents a point |
| -> m KMeans |
Lloyd's algorithm, also known as K-means algorithm
Arguments
| :: Matrix Double | initial set of k centroids |
| -> Matrix Double | each row represents a point |
| -> KMeans |
Lloyd's algorithm, also known as K-means algorithm
Initialization methods
data Initialization Source
Different initialization methods