{"id":34073131,"url":"https://github.com/jeromeshan/pbgca","last_synced_at":"2026-04-06T02:31:03.377Z","repository":{"id":41895893,"uuid":"424746745","full_name":"jeromeshan/pbgca","owner":"jeromeshan","description":"Physically based galaxy clustering algorithm","archived":false,"fork":false,"pushed_at":"2022-04-23T22:14:15.000Z","size":254,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-18T19:50:07.375Z","etag":null,"topics":["clustering","data-science","python"],"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/jeromeshan.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}},"created_at":"2021-11-04T21:36:47.000Z","updated_at":"2022-04-09T00:30:08.000Z","dependencies_parsed_at":"2022-08-11T20:31:29.155Z","dependency_job_id":null,"html_url":"https://github.com/jeromeshan/pbgca","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jeromeshan/pbgca","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromeshan%2Fpbgca","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromeshan%2Fpbgca/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromeshan%2Fpbgca/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromeshan%2Fpbgca/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeromeshan","download_url":"https://codeload.github.com/jeromeshan/pbgca/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeromeshan%2Fpbgca/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31457477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"online","status_checked_at":"2026-04-06T02:00:07.287Z","response_time":112,"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":["clustering","data-science","python"],"created_at":"2025-12-14T08:39:58.091Z","updated_at":"2026-04-06T02:31:03.372Z","avatar_url":"https://github.com/jeromeshan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PBGCA -  Physically based galaxy clustering algorithm\n\nAgglomenative clustering algorithm for galaxy clusters considering physical form of galaxy's structures\n\nClustering algoritm's initial purpose of which was to solve galaxy clustering task. But it can be scaled to solve simillar problem of finding clusters elongated to center of coordinates grid in N-dimentional grid\n\n### Installation\n```\npip install pbgca\n```\n\n### Get started\nHow to multiply one number by another with this lib:\n\n```Python\nfrom pbgca import Clusterer as PBGCA\n\n#Get your data\ndata = pd.read_csv('some_data.csv')\n\n# Instantiate a PBGCA object\nclusterer=PBGCA()\n\n# Call fit method\nclusterer.fit(data)\n\n# Get result of clustering\nresult = clusterer.labels_\n```\n\n\nInput Example:\n  3d coordinates of galaxies in form of np matrix or pandas dataframe (here units: Mpc)\n  Example:\n\n| x      | y | z    |\n| ------------- | ------------- |------------- |\n| 1      | 34       | 0.45   |\n| -1   | 94        | -0.322      |\n| ..   | ...       | ...      |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromeshan%2Fpbgca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeromeshan%2Fpbgca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeromeshan%2Fpbgca/lists"}