NSEvent / weighted-kmeans

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%