https://github.com/jeromeshan/pbgca
Physically based galaxy clustering algorithm
https://github.com/jeromeshan/pbgca
clustering data-science python
Last synced: 3 months ago
JSON representation
Physically based galaxy clustering algorithm
- Host: GitHub
- URL: https://github.com/jeromeshan/pbgca
- Owner: jeromeshan
- License: mit
- Created: 2021-11-04T21:36:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T22:14:15.000Z (about 4 years ago)
- Last Synced: 2026-02-18T19:50:07.375Z (5 months ago)
- Topics: clustering, data-science, python
- Language: Python
- Homepage:
- Size: 248 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PBGCA - Physically based galaxy clustering algorithm
Agglomenative clustering algorithm for galaxy clusters considering physical form of galaxy's structures
Clustering 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
### Installation
```
pip install pbgca
```
### Get started
How to multiply one number by another with this lib:
```Python
from pbgca import Clusterer as PBGCA
#Get your data
data = pd.read_csv('some_data.csv')
# Instantiate a PBGCA object
clusterer=PBGCA()
# Call fit method
clusterer.fit(data)
# Get result of clustering
result = clusterer.labels_
```
Input Example:
3d coordinates of galaxies in form of np matrix or pandas dataframe (here units: Mpc)
Example:
| x | y | z |
| ------------- | ------------- |------------- |
| 1 | 34 | 0.45 |
| -1 | 94 | -0.322 |
| .. | ... | ... |