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개)

카테고리

도움말 센터File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

질문:

2020년 3월 6일

댓글:

2020년 4월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by