https://github.com/rmodi6/k-means
k-means clustering algorithm implemented in Python
https://github.com/rmodi6/k-means
k-means-clustering machine-learning python3
Last synced: 5 months ago
JSON representation
k-means clustering algorithm implemented in Python
- Host: GitHub
- URL: https://github.com/rmodi6/k-means
- Owner: rmodi6
- License: mit
- Created: 2020-05-13T22:28:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T16:50:23.000Z (over 5 years ago)
- Last Synced: 2025-01-11T08:08:58.655Z (about 1 year ago)
- Topics: k-means-clustering, machine-learning, python3
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k-means clustering
k-means clustering algorithm implemented in Python.
### Usage
```bash
usage: kmeans.py [-h] --dataset DATASET_PATH [--k K]
[--distance {euclidean,manhattan}]
k-means clustering algorithm
optional arguments:
-h, --help show this help message and exit
--dataset DATASET_PATH
path to dataset
--k K number of clusters (default: 2)
--distance {euclidean,manhattan}
distance function (default: Euclidean)
```
### Example
```bash
python kmeans.py --dataset dataset/Breast_cancer_data.csv --k 2 --distance manhattan
```