{"id":23743156,"url":"https://github.com/juselara1/bregclus","last_synced_at":"2025-04-12T06:05:53.008Z","repository":{"id":129460249,"uuid":"326327715","full_name":"juselara1/bregclus","owner":"juselara1","description":"Python implementation of Bregman Hard Clustering and Bregman Soft Clustering as a scikit-learn module.","archived":false,"fork":false,"pushed_at":"2022-12-06T19:45:09.000Z","size":22,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T06:05:44.599Z","etag":null,"topics":["bregman-divergence","clustering","numpy","scikit-learn","unsupervised-learning"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juselara1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-03T04:34:13.000Z","updated_at":"2025-01-30T22:03:38.000Z","dependencies_parsed_at":"2023-05-30T04:00:25.070Z","dependency_job_id":null,"html_url":"https://github.com/juselara1/bregclus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juselara1%2Fbregclus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juselara1%2Fbregclus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juselara1%2Fbregclus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juselara1%2Fbregclus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juselara1","download_url":"https://codeload.github.com/juselara1/bregclus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525144,"owners_count":21118618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bregman-divergence","clustering","numpy","scikit-learn","unsupervised-learning"],"created_at":"2024-12-31T11:58:39.242Z","updated_at":"2025-04-12T06:05:53.000Z","avatar_url":"https://github.com/juselara1.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clustering with Bregman Divergences\n\nPython implementation of *Clustering with Bregman Divergences* as a `scikit-learn` module:\n\n* Banerjee, A., Merugu, S., Dhillon, I. S., \u0026 Ghosh, J. (2005). Clustering with Bregman divergences. Journal of machine learning research, 6(Oct), 1705-1749. [pdf](https://www.jmlr.org/papers/volume6/banerjee05b/banerjee05b.pdf)\n\n## Requirements\n\n---\n\nIf you have [anaconda](https://www.anaconda.com/) installed, you can create an environment with the dependences as follows:\n\n```sh\nconda env create -f requirements.yml\n```\n\nThen, you must activate the environment:\n\n```sh\nsource activate env\n```\n\nor\n\n```sh\nconda activate env\n```\n\n## Installation \n\n---\n\nYou can install this package via `setuptools`:\n\n```sh\npython setup.py install\n```\n\n### Usage\n\n---\n\nYou can use the models as you usually do in sklearn:\n\n```python\nfrom bregclus.models import BregmanHard\nfrom bregclus.divergences import euclidean\nimport numpy as np\n\nX = np.random.uniform(size=(100, 2))\n\nmodel = BregmanHard(n_clusters=5, divergence=euclidean)\nmodel.fit(X)\ny_pred = model.predict(X)\n```\n\nFeel free to check the example codes: `examples/`\n\n```sh\npython euclidean_hard.py\npython mahalanobis_hard.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuselara1%2Fbregclus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuselara1%2Fbregclus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuselara1%2Fbregclus/lists"}