Interactivekmeans
Interactive HTML canvas based implementation of k-means.
Install / Use
/learn @lettier/InteractivekmeansREADME

Interactive K-means
Visualize and interact with the clustering algorithm k-means.
Try it at lettier.com/kmeans.
Read more about k-means.
Download & Run
git clone https://github.com/lettier/interactivekmeans.git
cd interactivekmeans
nohup python -m http.server &> /dev/null &
python -mwebbrowser http://localhost:8000
Directions
- Lay down data points by clicking the mouse.
- You can also use the
scatterbutton located in the controls. - Set your value for
kandmaxIterations. - Press
runKMeansto cluster the on-screen data points. - Remove data points by clicking on them.
- Use the silhouette coefficient to find the optimal
k.
(C) 2015 David Lettier.
lettier.com
Related Skills
feishu-drive
352.2k|
things-mac
352.2kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
352.2kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
codebase-memory-mcp
1.3kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 66 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
