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/god-2022/README.md

45 lines
791 B
Markdown
Raw Normal View History

2023-02-14 10:01:31 +00:00
# IMA - God classes project
## Xerces2
2023-02-14 11:10:16 +00:00
- Download: https://dlcdn.apache.org//xerces/j/source/Xerces-J-src.2.12.2.zip
- extract and rename folder to `xerces2`
2023-02-14 10:01:31 +00:00
2023-02-15 13:37:15 +00:00
## Running
### Part 3: clustering and silhouette metric
To compute optimal k-means and agglomerative clusterings using silhouette
validation for all classes run:
```shell
./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:
```shell
./k_means.py KLASS K
```
```shell
./hierarchical.py KLASS K
```
Then, to check their silhouette metric run:
```shell
./silhouette.py
```
2023-02-14 10:01:31 +00:00
## Install dependencies
```shell
# create venv
python -m venv env
source env/bin/activate
pip3 install -r requirements.txt
```