MATLAB code to cluster categorical data

조회 수: 17 (최근 30일)
N Z
N Z 2021년 2월 19일
답변: Mahesh Taparia 2021년 3월 1일
Hello everyone,
I am new to MATLAB programming. I want to cluster my categorical data. I have six columns which five of which are non-numeric data, and one column is numeric data as follows:
  • Market (non-numeric data)
  • Vet Drug (non-numeric data)
  • Published Commodity (non-numeric data)
  • Index Commodity Group (non-numeric data)
  • Index Commodity (non-numeric data)
  • MRL Amount (ppb) (numeric data)
There are 1545 data (number of rows). I am attaching part of the data here. Is there any suggestion or recommendation for the best and appropriate method to cluster my categorical data so that we get useful information by looking at the results and plots? Any help would be appreciated.
Thanks,
  댓글 수: 2
Mahesh Taparia
Mahesh Taparia 2021년 2월 25일
Hi
Do you have the associated labels of your data? If not, do you know the number of categories the dataset have?
N Z
N Z 2021년 2월 27일
Hello Mahesh,
Thank you for your message and reply. My data does not have any labels, and I want to use an unsupervised learning method to classify my data into optimal classes. I do not know the number of categories the dataset have in advance; however, we can categorize our dataset into 3.
I really appreciate any help you can provide,

댓글을 달려면 로그인하십시오.

답변 (1개)

Mahesh Taparia
Mahesh Taparia 2021년 3월 1일
Hi
You can refer this documentation of clustering. Hope it will help!

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by