Bregclus
Python implementation of Bregman Hard Clustering and Bregman Soft Clustering as a scikit-learn module.
Install / Use
/learn @juselara1/BregclusREADME
Clustering with Bregman Divergences
Python implementation of Clustering with Bregman Divergences as a scikit-learn module:
- Banerjee, A., Merugu, S., Dhillon, I. S., & Ghosh, J. (2005). Clustering with Bregman divergences. Journal of machine learning research, 6(Oct), 1705-1749. pdf
Requirements
If you have anaconda installed, you can create an environment with the dependences as follows:
conda env create -f requirements.yml
Then, you must activate the environment:
source activate env
or
conda activate env
Installation
You can install this package via setuptools:
python setup.py install
Usage
You can use the models as you usually do in sklearn:
from bregclus.models import BregmanHard
from bregclus.divergences import euclidean
import numpy as np
X = np.random.uniform(size=(100, 2))
model = BregmanHard(n_clusters=5, divergence=euclidean)
model.fit(X)
y_pred = model.predict(X)
Feel free to check the example codes: examples/
python euclidean_hard.py
python mahalanobis_hard.py
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
