Classification Learner multi labels

7 次查看(过去 30 天)
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