This repository holds some clustering utilities used for a subject in a Master's degree in Applied Computing.
- uv tool to manage python virtual environment and dependencies.
-
Clone the repository:
git clone git@github.com:Perer876/clustering.git cd clustering
-
Create environment, install dependencies and install cli:
uv tool install ./ --editable
clustering --help
Create blobs dataset:
clustering create-dataset data/raw/blobs.csv --samples 100 --features 2 --centers 3 --seed 1
Cluster using bsas:
clustering bsas data/raw/blobs.csv data/processed/blobs_bsas.csv --threshold 1.5 --max-clusters 5
Plot a dataset:
clustering plot data/raw/blobs.csv plots/blobs.png
clustering k-means data/raw/100S_2F_3C.csv data/processed/k-means_3k.csv --k 3 --seed 0
clustering plot-clusters data/processed/k-means_3k.csv plots/k-means_3k.png