Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bryanyang0528/kmeans_distance_center
- Owner: bryanyang0528
- Created: 2014-10-24T11:53:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-25T15:24:14.000Z (about 10 years ago)
- Last Synced: 2023-08-02T20:57:45.390Z (over 1 year ago)
- Language: Python
- Size: 168 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]