/kmeans

K-Means algorithm implementation in Go

Primary LanguageGoBSD 2-Clause "Simplified" LicenseBSD-2-Clause

Testing Image Issues

K-Means

kmeans is BSD licensed fast k-means implementation(with better initialization, known as k-means++) written in Go. It supports various distance functions out of the box for convenience and experimentation. It has large coverage for tests. The algorithm is tested on Iris dataset and distance functions have full test coverage.

Documentation

Godoc

License

BSD License

Distance Functions

It supports various distance functions:

  • LP norms (manhattan, euclidean distances including)
  • SquaredEuclideanDistance
  • Minkowski Distance
  • Weighted Minkowski Distance
  • Chebyshev Distance
  • Hamming Distance
  • Bray Curtis Distance
  • CanberraDistance