All Projects → mljs → kmeans

mljs / kmeans

Licence: MIT License
K-Means clustering

Programming Languages

javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to kmeans

Kdd2019 k Multiple Means
Implementation for the paper "K-Multiple-Means: A Multiple-Means Clustering Method with Specified K Clusters,", which has been accepted by KDD'2019 as an ORAL paper, in the Research Track.
Stars: ✭ 45 (-11.76%)
Mutual labels:  clustering, kmeans
gouda
Golang Utilities for Data Analysis
Stars: ✭ 18 (-64.71%)
Mutual labels:  clustering, kmeans
text clustering
文本聚类(Kmeans、DBSCAN、LDA、Single-pass)
Stars: ✭ 230 (+350.98%)
Mutual labels:  clustering, kmeans
AnnA Anki neuronal Appendix
Using machine learning on your anki collection to enhance the scheduling via semantic clustering and semantic similarity
Stars: ✭ 39 (-23.53%)
Mutual labels:  clustering, kmeans
clustering-python
Different clustering approaches applied on different problemsets
Stars: ✭ 36 (-29.41%)
Mutual labels:  clustering, kmeans
kmeans
A simple implementation of K-means (and Bisecting K-means) clustering algorithm in Python
Stars: ✭ 18 (-64.71%)
Mutual labels:  clustering, kmeans
hclust
Hierarchical clustering in JavaScript
Stars: ✭ 39 (-23.53%)
Mutual labels:  clustering
SparseLSH
A Locality Sensitive Hashing (LSH) library with an emphasis on large, highly-dimensional datasets.
Stars: ✭ 127 (+149.02%)
Mutual labels:  clustering
DigitalCellSorter
Digital Cell Sorter (DCS): single cell RNA-seq analysis toolkit. Documentation:
Stars: ✭ 19 (-62.75%)
Mutual labels:  clustering
clope
Elixir implementation of CLOPE: A Fast and Effective Clustering Algorithm for Transactional Data
Stars: ✭ 18 (-64.71%)
Mutual labels:  clustering
Python-Machine-Learning-Fundamentals
D-Lab's 6 hour introduction to machine learning in Python. Learn how to perform classification, regression, clustering, and do model selection using scikit-learn and TPOT.
Stars: ✭ 46 (-9.8%)
Mutual labels:  clustering
ml
经典机器学习算法的极简实现
Stars: ✭ 130 (+154.9%)
Mutual labels:  kmeans
hmm
A Hidden Markov Model implemented in Javascript
Stars: ✭ 29 (-43.14%)
Mutual labels:  clustering
DBSCANSD
Java implementation for DBSCANSD, a trajectory clustering algorithm.
Stars: ✭ 35 (-31.37%)
Mutual labels:  clustering
machine-learning-course
Machine Learning Course @ Santa Clara University
Stars: ✭ 17 (-66.67%)
Mutual labels:  clustering
hotspot3d
3D hotspot mutation proximity analysis tool
Stars: ✭ 43 (-15.69%)
Mutual labels:  clustering
Linux-admin
Shell scripts to automate download of GitHub traffic statistics, cluster administration, and create an animated GIF.
Stars: ✭ 23 (-54.9%)
Mutual labels:  clustering
mousetrap
Process and Analyze Mouse-Tracking Data
Stars: ✭ 33 (-35.29%)
Mutual labels:  clustering
morphocluster
Source code for the MorphoCluster application described in Schroeder et al. 2020
Stars: ✭ 13 (-74.51%)
Mutual labels:  clustering
Fred
A fast, scalable and light-weight C++ Fréchet distance library, exposed to python and focused on (k,l)-clustering of polygonal curves.
Stars: ✭ 13 (-74.51%)
Mutual labels:  clustering

ml-kmeans

K-means clustering aims to partition n observations into k clusters in which each observation belongs to the cluster with the nearest mean.

Zakodium logo

Maintained by Zakodium

NPM version Test coverage npm download

Installation

npm i ml-kmeans

API Documentation

Example

const kmeans = require('ml-kmeans');

let data = [
  [1, 1, 1],
  [1, 2, 1],
  [-1, -1, -1],
  [-1, -1, -1.5],
];
let centers = [
  [1, 2, 1],
  [-1, -1, -1],
];

let ans = kmeans(data, 2, { initialization: centers });
console.log(ans);
/*
KMeansResult {
  clusters: [ 0, 0, 1, 1 ],
  centroids: 
   [ { centroid: [ 1, 1.5, 1 ], error: 0.25, size: 2 },
     { centroid: [ -1, -1, -1.25 ], error: 0.0625, size: 2 } ],
  converged: true,
  iterations: 1
}
*/

Authors

Sources

D. Arthur, S. Vassilvitskii, k-means++: The Advantages of Careful Seeding, in: Proc. of the 18th Annual ACM-SIAM Symposium on Discrete Algorithms, 2007, pp. 1027–1035. Link to article

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].