dbscan clustering error.

1 次查看(过去 30 天)
sreelekshmi ms
sreelekshmi ms 2020-3-6
评论: A.G. Bruno 2020-4-18
I have a data set Liverxl I attached here. I apply dbscan to this dataset but it didn't give any cluster output, only a value -1. What is the problem with it? Please help me.
clc;
clear;
data=xlsread('Liverxl.xlsx');
asc=sort(data);
minpts=6;
epsilon=4;
[idx, corepts] = dbscan(asc,epsilon,minpts);
gscatter(asc(:,1),asc(:,2),idx);
  1 个评论
A.G. Bruno
A.G. Bruno 2020-4-18
Your datasets include both values and strings, could be it the problem?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by