Meanshift的matlab代码使用
Tensorflow
进行均值漂移聚类
由
Phong
Le
()
编写和维护
描述
使用高斯核进行聚类。
要求
Python
3.5
跑步
要设置参数,打开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
执行
python3
src/meanshift.py
2021-12-25 20:36:51
62KB
系统开源
1