How falihsmara80-dot/high-performance-symnmf-clustering-engine works
This repository provides command-line SymNMF matrix operations and clustering, plus a separate K-means implementation and a comparison script. The main workflow loads data in symnmf.py, builds similarity and normalized matrices through the native Python extension, and runs the C SymNMF update; analysis.py compares resulting labels with K-means using silhouette scores. The README also describes spectral initialization and acceleration/sparse capabilities, but the excerpts do not show their implementation, so they are not mapped as runtime components.
Main entry points: analysis.py Comparison runner · symnmf.py SymNMF CLI · symnmfmodule.c Python bindings · symnmf.c Matrix operations
Components 10
Python workflows
- SymNMF CLI
symnmf.py - Input loader
symnmf.py - Matrix workflow
symnmf.py
Native engine
- Python bindings
symnmfmodule.c - Matrix operations
symnmf.c - SymNMF update
symnmf.c
Evaluation
- Comparison runner
analysis.py - K-means clustering
kmeans.py - Silhouette scoring
analysis.py
Other components
- CLI user
Connections 10
- CLI user → SymNMF CLI: runs
symnmf.py - SymNMF CLI → Input loader: loads data
symnmf.py - SymNMF CLI → Matrix workflow: dispatches goal
symnmf.py - Matrix workflow → Python bindings: calls bindings
symnmf.py - Python bindings → Matrix operations: calls matrix routines
symnmfmodule.c - Python bindings → SymNMF update: calls update
symnmfmodule.c - CLI user → Comparison runner: runs comparison
analysis.py - Comparison runner → Matrix workflow: calls SymNMF
analysis.py - Comparison runner → K-means clustering: gets labels
analysis.py - Comparison runner → Silhouette scoring: scores labels
analysis.py