Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bryanyang0528/kmeans_distance_center

calculate the distance between every points and it's own group center
https://github.com/bryanyang0528/kmeans_distance_center

Last synced: 1 day ago
JSON representation

calculate the distance between every points and it's own group center

Awesome Lists containing this project

README

        

Kmeans_distance_center
======================

calculate the distance between every points and it's own group center

# input file format:
iris.csv
- row is cases
- first column is case number
- other columns are attribute for clustering
- each attributes separate by ","
- no need title
- **(Important!!) all column need be digit (int or float)**

the format of input file is like this:

```
1,1.0,2.0,5.0
2,2.0,1.0,3.2
```

#script argument:
$python kmean.py [input data] [output data] [group number]