Classification learner - categorical data import not working
조회 수: 10 (최근 30일)
이전 댓글 표시
Hi, I am trying to use the classification learner app. I have categorical variable as a response variable but I cant seem to see it in the data workspace. How can I get the variable to show up in data import?
댓글 수: 0
채택된 답변
Brendan Hamm
2016년 5월 4일
The classification learner app only works with matrices and tables, but the latter can hold a categorical variable. SO if your data is in matrix X and your categorical variable is c, pleace them in a table as follows:
T = [array2table(X) c];
Now you can classify away.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Classification Learner App에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!