当前位置:网站首页>Meanshift clustering-01 principle analysis
Meanshift clustering-01 principle analysis
2022-07-25 15:08:00 【Weigtang 406 team】
Intro
I used... In my work meanshift, Do not trace too complex principles and various algorithm variants , original paper wait . Only conceptually , Make a brief summary and introduction to the principle . The main logic , Reference resources sklearn Source code .
And commonly used k-means equally ,meanshift It is also an iterative algorithm . What we pay attention to is nothing more than the following :
- Iterative logic , How to iterate
- The conditions for the termination of the iteration
- How to type the sample label
The main logic
sklearn The code logic of is as follows :
- initialization : Generate bandwidth and seeds. If not specified bandwidth and seeds, It will generate
- Parallelization completes all seeds Iteration , Every seed It is equivalent to a separate iterative process
- Iteration termination condition :max_iter=300 Or the threshold is less than 1e-3 * bandwidth
- At the first iteration ,seed Is the clustering center , Get the center point bandwidth All sample points in the range
- Recalculate the center point ( That is, find the mean ), Perform the previous step , Until the iteration stop condition is met
- Merge cluster centers
- Sort according to the number of samples covered by each central point , Calculate the distance between each center point in turn
- stay bandwidth Two central points within , Keep the center point with a high number of coverage samples
- Call the sample label
- Find the nearest center point near each sample , Then the modified samples belong to this category
- cluster_all=False, be bandwidth Points outside are named -1, Otherwise, it is the nearest cluster center
Ref
[1] https://scikit-learn.org/stable/modules/generated/sklearn.cluster.MeanShift.html
2021-03-29 Jiulong lake, Jiangning District, Nanjing
边栏推荐
猜你喜欢

Syntax summary of easygui

Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection

37 元素模式(行内元素,块元素,行内块元素)

06. Neural network like

如何解决Visual Studio中scanf编译报错的问题

Realsense ROS installation configuration introduction and problem solving

Melody + realsense d435i configuration and error resolution

【JS高级】js之正则相关函数以及正则对象_02

44 新浪导航 ,小米边栏 练习

I2C device driver hierarchy
随机推荐
PHP 通过原生CURL实现非阻塞(并发)请求模式
"Ask every day" briefly talk about JMM / talk about your understanding of JMM
Handle Oracle deadlock
35 快速格式化代码
Cmake specify opencv version
js URLEncode函数
PHP implements non blocking (concurrent) request mode through native curl
深入:微任务与宏任务
Log4j2 basic configuration
Qt connect 中, SIGNAL,SLOT 与 lambda 对比
Nacos2.1.0 cluster construction
SSM Advanced Integration
AS查看依赖关系和排除依赖关系的办法
Docker上运行redis以配置文件方式启动,连接客户端报错Error: Server closed the connection
Login of MySQL [database system]
Visual Studio 2022 查看类关系图
LeetCode_ String_ Medium_ 151. Reverse the words in the string
[C topic] Li Kou 206. reverse the linked list
How many ways can you assign initial values to a two-dimensional array?
密码强度验证示例