how do I get the names of the attributes?
조회 수: 1 (최근 30일)
이전 댓글 표시
load iris.dat
iris(1,1)
gives me the first value of the first column
how do I access the name of the attribute?
댓글 수: 0
채택된 답변
mizuki
2016년 9월 18일
iris.dat in Fuzzy Logic Toolbox does not have class information (name of the attribute). So, you need to add class information by yourself like:
setosa = iris((iris(:,5)==1),:); % data for setosa
versicolor = iris((iris(:,5)==2),:); % data for versicolor
virginica = iris((iris(:,5)==3),:); % data for virginica
If you have Statistics and Machine Learning Toolbox, use fisheriris instead.
load fisheriris
A variable meas contains features and Species is class information.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!