Classification Learner multi labels

조회 수: 7 (최근 30일)
Laura Gabriela
Laura Gabriela 2021년 4월 3일
답변: Aditya Patil 2021년 4월 6일
Hello everyone!
I am trying to classify some data in classification learner. I have multiple classes for example right and left hand and right, left leg. for each sample i know if the right hand is up or down. How do i write the labels in one column so my classifier gives me 4 outputs? For example for one set of data it predicts that my left hand is down AND my right hand is up plus left leg up and right leg down. And when i am using classification learner it is seeing only one colmn of labels
In the data set i have 20 feature columns plus 4 other columns for the labels (right,left hand, right left leg)
Does anyone know?

답변 (1개)

Aditya Patil
Aditya Patil 2021년 4월 6일
Multi class classification can be considered as a regression problem, where the model predicts the probability of each of the classes independently. For example, in your case, it means the model would give 4 outputs, one each for right hand, left hand, right leg, and left leg.
There are multiple models that could be used for this. One option is to use a neural network, where you put sigmoid as the last layer. Another option is to use mvregress function.

카테고리

Help CenterFile Exchange에서 Classification Ensembles에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by