当前位置:网站首页>【数据聚类】基于多元宇宙优化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代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
边栏推荐
- 本地navicat连接liunx下的oracle报权限不足
- Technology sharing | packet capturing analysis TCP protocol
- The database synchronization tool dbsync adds support for mongodb and es
- [system design] index monitoring and alarm system
- Tsinghua Yaoban programmers, online marriage was scolded?
- 【紋理特征提取】基於matlab局部二值模式LBP圖像紋理特征提取【含Matlab源碼 1931期】
- STM32入门开发 采用IIC硬件时序读写AT24C08(EEPROM)
- 【神经网络】卷积神经网络CNN【含Matlab源码 1932期】
- Briefly introduce closures and some application scenarios
- 【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
猜你喜欢
【纹理特征提取】基于matlab局部二值模式LBP图像纹理特征提取【含Matlab源码 1931期】
Leetcode - interview question 17.24 maximum submatrix
The road to success in R & D efficiency of 1000 person Internet companies
请查收.NET MAUI 的最新学习资源
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
【最短路】Acwing1128信使:floyd最短路
相机标定(1): 单目相机标定及张正友标定基本原理
Half of the people don't know the difference between for and foreach???
Programming examples of stm32f1 and stm32subeide -315m super regenerative wireless remote control module drive
Talk about SOC startup (VII) uboot startup process III
随机推荐
一度辍学的数学差生,获得今年菲尔兹奖
深度学习秋招面试题集锦(一)
聊聊SOC启动(九) 为uboot 添加新的board
electron 添加 SQLite 数据库
There are so many factors that imprison you
分布式数据库主从配置(MySQL)
【滤波跟踪】基于matlab捷联惯导仿真【含Matlab源码 1935期】
【时间格式工具函数的封装】
The Oracle message permission under the local Navicat connection liunx is insufficient
Nuclear boat (I): when "male mothers" come into reality, can the biotechnology revolution liberate women?
Swiftui swift internal skill: five skills of using opaque type in swift
自律,提升自制力原来也有方法
Electron adding SQLite database
The post-90s resigned and started a business, saying they would kill cloud database
How to write test cases for test coupons?
When sink is consumed in mysql, the self incrementing primary key has been set in the database table. How to operate in Flink?
STM32 entry development uses IIC hardware timing to read and write AT24C08 (EEPROM)
在我有限的软件测试经历里,一段专职的自动化测试经验总结
Use metersphere to keep your testing work efficient
【最短路】ACwing 1127. 香甜的黄油(堆优化的dijsktra或spfa)