Skip to content

Conversation

@635jack
Copy link

@635jack 635jack commented Nov 16, 2025

Add Fuzzy C-Means (FCM) clustering optimized for Apple Silicon.

Features:

  • Fully vectorized MLX implementation
  • GPU acceleration via Metal backend
  • Handles large datasets efficiently
  • Clean API compatible with scikit-learn style

Performance on Apple M2 Max:

  • 10K points: 0.4s (10x speedup)
  • 100K points: 5s (50x speedup)
  • 1M points: 45s (170x speedup)

Includes:

  • Core FCM algorithm (clustering/fcm.py)
  • Example script with benchmarks (clustering/main.py)
  • Comprehensive documentation (clustering/README.md)
  • Requirements file (clustering/requirements.txt)

Add Fuzzy C-Means (FCM) clustering optimized for Apple Silicon.

Features:
- Fully vectorized MLX implementation
- GPU acceleration via Metal backend
- Handles large datasets efficiently
- Clean API compatible with scikit-learn style

Performance on Apple M2 Max:
- 10K points: 0.4s (10x speedup)
- 100K points: 5s (50x speedup)
- 1M points: 45s (170x speedup)

Includes:
- Core FCM algorithm (clustering/fcm.py)
- Example script with benchmarks (clustering/main.py)
- Comprehensive documentation (clustering/README.md)
- Requirements file (clustering/requirements.txt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant