CS 229 Project for constellation clustering. It contains a command version and a GUI version.
Author: Kaifeng Chen, kfrancischen@gmail.com.
- dataProcessing.py: function for database processing
- algorithms.py: script containing all the algorithm classes.
- basicFun.py: script including all the basic and commonly used functions.
- visualization.py: script of doing 3D visualization.
- clustering.py: main script of runing the proper algorithm and generate figure.
- database.json: database for stars.
- GUI.ui: GUI designed by Qt Designer.
- GUI.py: Python GUI file generated by pyuic5.
- main.py: file implementing the actions and create the application instance.
Running Kmeans:
python clustering.py -a Kmeans k [the k value]
Running DBSCAN:
python clustering.py -a DBSCAN eps [the eps value] mindist [the mindist value]
Running Hierachical Clustering:
python clustering.py -a HC n [the n value]
Running Hierachical Clustering (2nd version) to get the dendrogram:
python clustering.py -a HC_2 default 0
Running Affinity Propagation:
python clustering.py -a affinity d [the damping factor] mi [the max_iter value]
Running Spectral Clustering:
python clustering.py -a spectral n [the n value]
Running Rote Classification:
python clustering.py -a rote default 1
python main.py