{"id":16507748,"url":"https://github.com/sachinkalsi/kmedoids","last_synced_at":"2026-02-18T21:03:15.879Z","repository":{"id":169254307,"uuid":"135394753","full_name":"SachinKalsi/kmedoids","owner":"SachinKalsi","description":"The Partitioning Around Medoids (PAM) implementation of the K-Medoids algorithm in Python [Unmaintained]","archived":false,"fork":false,"pushed_at":"2023-05-25T04:44:25.000Z","size":283,"stargazers_count":24,"open_issues_count":0,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T23:56:21.905Z","etag":null,"topics":["cluster","clusters","kmedoids-clustering","machine-learning","medoids","partitioning","unsupervised-learning"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/SachinKalsi.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-05-30T05:57:41.000Z","updated_at":"2024-05-17T13:24:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d3020a4-d048-4794-959b-f1c347978169","html_url":"https://github.com/SachinKalsi/kmedoids","commit_stats":null,"previous_names":["sachinkalsi/kmedoids"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SachinKalsi/kmedoids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SachinKalsi%2Fkmedoids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SachinKalsi%2Fkmedoids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SachinKalsi%2Fkmedoids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SachinKalsi%2Fkmedoids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SachinKalsi","download_url":"https://codeload.github.com/SachinKalsi/kmedoids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SachinKalsi%2Fkmedoids/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cluster","clusters","kmedoids-clustering","machine-learning","medoids","partitioning","unsupervised-learning"],"created_at":"2024-10-11T15:30:15.100Z","updated_at":"2026-02-18T21:03:15.863Z","avatar_url":"https://github.com/SachinKalsi.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# K-Medoids \nK-Medoids is a clustering algorithm. **Partitioning Around Medoids (PAM)** algorithm is one such implementation of K-Medoids\n\n## Prerequisites\n  - Scipy\n  - Numpy\n \n## Getting Started\n`from KMedoids import KMedoids`\n\n## Parameters\n- `n_cluster`: number of clusters\n- `max_iter`: maximum number of iterations\n- `tol`: tolerance level\n\n## Example \n[Wiki Example](https://en.wikipedia.org/wiki/K-medoids#Demonstration_of_PAM)\n```\ndata = [[2, 6], [3, 4], [3, 8], [4, 7], [6, 2], [6, 4], [7, 3], [7, 4], [8, 5], [7, 6]]\nk_medoids = KMedoids(n_cluster=2)\nk_medoids.fit(data)\n```\n![Visualization](visualization.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinkalsi%2Fkmedoids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsachinkalsi%2Fkmedoids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsachinkalsi%2Fkmedoids/lists"}