Scluster
An implementation of the self-tuning spectral clustering algorithm described in Zelnik-Manor and Perona (2004)
Install / Use
/learn @kgori/SclusterREADME
scluster
An implementation in Python of the self-tuning spectral clustering algorithm from Zelnik-Manor and Perona (2004). The original Matlab implementation can be found here.
Example usage: sclust.py [--scale INT] distances.csv min=2 max=12
In the original paper the local scaling parameter was set to 7 - i.e. the distance to the 7th nearest neighbour. The scale parameter selects the K-th nearest neighbour.
min and max select the minimum and maximum number of clusters to return, respectively. Note that the algorithm slows down noticeably once it hits around 50 clusters.
Related Skills
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
roadmap
A beautifully designed, floating Pomodoro timer that respects your workspace.
progress
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
21PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
