Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

problem in matlab Apps

조회 수: 2 (최근 30일)
ahmad karim
ahmad karim 2017년 1월 30일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
assume i have data in the form of matrix when i want to classify it using Apps in matlab how can i determine the categories https://www.mathworks.com/videos/classify-data-using-the-classification-learner-app-106171.html in this tutorial not explain the classes (predicates)

답변 (1개)

Walter Roberson
Walter Roberson 2017년 1월 30일
The classes would have to be something you know ahead of time. To train a classifier, you need to have some known information about the classes of the data being trained on.
You might also have some data that you do not know the class for, that you want the classifier to figure out, but first you need some data that you do know the class for.
  댓글 수: 2
ahmad karim
ahmad karim 2017년 1월 30일
yes, i have data that that i know its classes but. how can i define that in matlab apps ? where i insert the classes?
Walter Roberson
Walter Roberson 2017년 1월 30일
At the MATLAB level, create a single array that has the class number as one of the columns. In the Classification Learner App, import that variable, and mark the appropriate column as being the "response" variable.
If your class list is not numeric, then use one of these two patterns:
T = table(Data(:,1), Data(:,2), Data(:,3), ClassInformation(:));
or
T = [array2table(Data), array2table(ClassInformation(:))];
and then ask the classification app to import T; it will probably automatically detect the column as being the response variable.

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by