当前位置:网站首页>【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
【数据聚类】基于多元宇宙优化DBSCAN实现数据聚类分析附matlab代码
2022-07-07 09:53:00 【Matlab科研工作室】
1 简介
针对DBSCAN聚类算法对参数敏感,参数选取依靠经验的问题,文章提出了一种基于多元宇宙优化的DBSCAN聚类(MVO-DBSCAN)算法.
2 部分代码
%%% main function:主函数
clc;
clear;
close all;
tic;
% 读取数据
% load('C:\Users\Administrator\Desktop\MATLAb Programming practice\MVO-DBSCAN\X.mat');
load X.mat;
% 数据标签
train_labels=[];
for i=1:3
train_labels=[train_labels;i*ones(100,1)];
end
%% run MVO Algorithm
Universes_no=60; %Number of search agents (universes)
Max_iteration=500; %Maximum numbef of iterations
% 待优化参数(宇宙)的上、下界和维度
lb=0.01;
ub=0.5;
dim=1;
% 定义参数MinPts
MinPts =4;
[Best_score,Best_pos,cg_curve]=MVO(Universes_no,Max_iteration,lb,ub,dim,MinPts,X,train_labels);
display(['The best solution obtained by MVO is : ', num2str(Best_pos)]);
display(['The best optimal value of the objective funciton found by MVO is : ', num2str(Best_score)]);
%% Run DBSCAN Clustering Algorithm
Eps=Best_pos;
labels=DBSCAN(X,Eps,MinPts);
figure;
PlotClusterinResult(X, labels);
title(['DBSCAN Clustering (\epsilon = ' num2str(Eps) ', MinPts = ' num2str(MinPts) ')']);
toc;
3 仿真结果
4 参考文献
[1]王李彧, 孙斌. 基于改进的DBSCAN聚类算法的云任务调度策略研究[C]// 2016年全国通信软件学术会议. 2016.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- Easyui学习整理笔记
- 竟然有一半的人不知道 for 与 foreach 的区别???
- STM32 entry development write DS18B20 temperature sensor driver (read ambient temperature, support cascade)
- Verilog realizes nixie tube display driver [with source code]
- 【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】
- 【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)
- TDengine 社区问题双周精选 | 第二期
- MIF file format record
- 對比學習之 Unsupervised Learning of Visual Features by Contrasting Cluster Assignments
- Blog moved to Zhihu
猜你喜欢
Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on SPI)
相机标定(1): 单目相机标定及张正友标定基本原理
Swiftui swift internal skill how to perform automatic trigonometric function calculation in swift
Tsinghua Yaoban programmers, online marriage was scolded?
分布式数据库主从配置(MySQL)
How to write test cases for test coupons?
相机标定(2): 单目相机标定总结
在我有限的软件测试经历里,一段专职的自动化测试经验总结
【最短路】Acwing1128信使:floyd最短路
Flet教程之 15 GridView 基础入门(教程含源码)
随机推荐
测试优惠券要怎么写测试用例?
Fleet tutorial 19 introduction to verticaldivider separator component Foundation (tutorial includes source code)
About how to install mysql8.0 on the cloud server (Tencent cloud here) and enable local remote connection
The road to success in R & D efficiency of 1000 person Internet companies
Briefly introduce closures and some application scenarios
R语言可视化分面图、假设检验、多变量分组t检验、可视化多变量分组分面箱图(faceting boxplot)并添加显著性水平、添加抖动数据点(jitter points)
一起探索云服务之云数据库
Talk about SOC startup (VII) uboot startup process III
The database synchronization tool dbsync adds support for mongodb and es
Neural approvals to conversational AI (1)
SwiftUI Swift 内功之 Swift 中使用不透明类型的 5 个技巧
[Yugong series] go teaching course 005 variables in July 2022
Use references
使用MeterSphere让你的测试工作持续高效
Flet教程之 14 ListTile 基础入门(教程含源码)
Solve the problem that vscode can only open two tabs
In SQL, I want to set foreign keys. Why is this problem
学习笔记|数据小白使用DataEase制作数据大屏
Verilog design responder [with source code]
QT implements the delete method of the container