How to tell two categorical arrays with different categories names are the same
조회 수: 4 (최근 30일)
이전 댓글 표시
Assume I have two categorical arrays as for example the following:
X=[1,1,2,3];
y=[3,3,1,2];
The two arrays have different classes names (categories) but in the classification task they have the same classes. How could I tell that the two arrays are the same (have the same categories)?
댓글 수: 0
채택된 답변
Peter Perkins
2022년 3월 24일
You don't have categorical arrays, you have numeric arrays. If you had categorical arrays, you'd just look at their categories.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!