This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
ima-preparation/proj2022
2023-02-15 16:37:53 +01:00
..
clustering god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
feature_vectors god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
god_classes god-2022: part 3 done 2023-02-15 14:37:15 +01:00
.gitignore god-2022: part 3 done 2023-02-15 14:37:15 +01:00
extract_feature_vectors.py god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
find_god_classes.py god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
ground_truth.py god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
hierarchical.py god-2022: part 3 done 2023-02-15 14:37:15 +01:00
k_means.py god-2022: part 3 done 2023-02-15 14:37:15 +01:00
keyword_list.txt god-2022: methods with 0 features now included as feature vectors, ground truth done 2023-02-15 15:23:31 +01:00
prec_recall.py god-2022: part 4 done 2023-02-15 16:37:53 +01:00
README.md god-2022: part 3 done 2023-02-15 14:37:15 +01:00
requirements.txt god-2022: part 3 done 2023-02-15 14:37:15 +01:00
silhouette.py god-2022: part 3 done 2023-02-15 14:37:15 +01:00

IMA - God classes project

Xerces2

Running

Part 3: clustering and silhouette metric

To compute optimal k-means and agglomerative clusterings using silhouette validation for all classes run:

./silhouette.py --validate --autorun

To compute k-means or agglomerative clustering for a specific number of clusters K and a specific class KLASS run respectively:

./k_means.py KLASS K
./hierarchical.py KLASS K

Then, to check their silhouette metric run:

./silhouette.py

Install dependencies

# create venv
python -m venv env
source env/bin/activate

pip3 install -r requirements.txt