{"id":18555386,"url":"https://github.com/bearloga/dpmclust","last_synced_at":"2025-10-06T10:36:25.810Z","repository":{"id":146996619,"uuid":"152109214","full_name":"bearloga/dpmclust","owner":"bearloga","description":"Bayesian nonparametric clustering in R using DP-means","archived":false,"fork":false,"pushed_at":"2020-03-06T17:43:25.000Z","size":144,"stargazers_count":12,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T16:13:03.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bearloga.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}},"created_at":"2018-10-08T16:08:43.000Z","updated_at":"2025-02-14T12:48:01.000Z","dependencies_parsed_at":"2023-10-20T18:20:40.019Z","dependency_job_id":null,"html_url":"https://github.com/bearloga/dpmclust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bearloga/dpmclust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fdpmclust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fdpmclust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fdpmclust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fdpmclust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bearloga","download_url":"https://codeload.github.com/bearloga/dpmclust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bearloga%2Fdpmclust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278596532,"owners_count":26013092,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T21:26:23.938Z","updated_at":"2025-10-06T10:36:25.788Z","avatar_url":"https://github.com/bearloga.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DP-means clustering in R\n\nThis package implements the DP-means algorithm introduced by Kulis and Jordan in their article *[Revisiting k-means: New Algorithms via Bayesian Nonparametrics](https://arxiv.org/abs/1111.0352)*. Instead of specifying how many clusters to partition the data into, like one would with k-means, user specifies a penalty parameter λ which controls if/when new clusters are created during iterations:\n\n![Effect of choice of lambda on clustering](lambdas.png)\n\nThe algorithm starts with a single cluster and then processes the data points, creating new clusters when needed, and then updates centers until convergence.\n\n## Installation\n\n```R\n# install.packages(\"remotes\")\nremotes::install_github(\"bearloga/dpmclust\")\n```\n\n## Usage\n\n`dp_means()` returns an object with same class and components as `kmeans()` does, which makes it easy to use other packages that support the `kmeans` object (e.g. [`autoplot()` in the `ggfortify` package](https://cran.r-project.org/web/packages/ggfortify/vignettes/plot_pca.html)).\n\n```R\ny \u003c- dp_means(x, lambda = 1)\n# y$cluster\n```\n\n## Future Work\n\nNeed to implement [lambda means](https://ieeexplore.ieee.org/document/7899984) algorithm for choosing optimal λ.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fdpmclust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbearloga%2Fdpmclust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbearloga%2Fdpmclust/lists"}