Clear Filters
Clear Filters

Classification Learner multi labels

6 views (last 30 days)
Laura Gabriela
Laura Gabriela on 3 Apr 2021
Answered: Aditya Patil on 6 Apr 2021
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?

Answers (1)

Aditya Patil
Aditya Patil on 6 Apr 2021
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.

Community Treasure Hunt

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

Start Hunting!