Skip to content

Clusters weighted (x, y) coordinates using k-means clustering

Notifications You must be signed in to change notification settings

NSEvent/weighted-kmeans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weighted-kmeans

Clusters weighted (x, y) coordinates using k-means clustering

The data represents the location of a client and the priority (weight) that the client has. The goal of k-means clustering is calculate the coordinates to place servers in the center of k clusters of clients, so that the average squared Euclidean distance between a client and server are minimized.

Tested with Python 3.7.5 in Linux environment

Example

Install required dependencies

pip install -r requirements.txt

Run

python3 kmeans.py

About

Clusters weighted (x, y) coordinates using k-means clustering

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages