lephong / tf-meanshift

Mean-shift Clustering with Tensorflow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mean-shift Clustering with Tensorflow

Writen and maintained by Phong Le (p.le@uva.nl)

Description

Clustering using mean shift with Gaussian kernel.

Requirements

Run

To set parameters, open src/meanshift.py

n_samples = 300 # sample size
n_centroids = n_samples # number of centroids
n_updates = -1 # number of updates, -1 means run until converge (diff < 1e-5)
window_radius = .1 # window radius for the Gaussian kernels
n_gaussians = 3 # 'true' number of clusters

Execute

python3 src/meanshift.py

example

About

Mean-shift Clustering with Tensorflow


Languages

Language:Python 100.0%