"Multinominal class -
alimay
New Altair Community Member
Hi again!
Simple question.. Again searched for the answer but no luck. Here we go:
I have a data set with multinominal class label. I want to use the regular SVM operator as my learning algorithm. Now, I put the SVM operator inside a cross validation block, an expected error is reported: SVM cannot handle multinominal class labels. Then I want to use one of the quick fixes, which seem very handy, polynomial by binomial classification (1 vs 1). When I chose this, as expected, it replaces the SVM which was on the training side of the cross validation with a polynomial by binomial classification operator, and puts the SVM inside it. Everything is fine until now. Then I use apply model at the other (right) side of the cross validation and as always put a performance (classification) operator next to it. Now it gets messy and says
1 error(s): Label and prediction must be of the same type but are polynominal and nominal, respectively.
And no matter what I tried I could not manage to fix this.
Any help is sincerely appriciated.
Thanks.
Simple question.. Again searched for the answer but no luck. Here we go:
I have a data set with multinominal class label. I want to use the regular SVM operator as my learning algorithm. Now, I put the SVM operator inside a cross validation block, an expected error is reported: SVM cannot handle multinominal class labels. Then I want to use one of the quick fixes, which seem very handy, polynomial by binomial classification (1 vs 1). When I chose this, as expected, it replaces the SVM which was on the training side of the cross validation with a polynomial by binomial classification operator, and puts the SVM inside it. Everything is fine until now. Then I use apply model at the other (right) side of the cross validation and as always put a performance (classification) operator next to it. Now it gets messy and says
1 error(s): Label and prediction must be of the same type but are polynominal and nominal, respectively.
And no matter what I tried I could not manage to fix this.
Any help is sincerely appriciated.
Thanks.
Tagged:
0
Answers
-
Hi alimay.
The warning message of the ClassificationPerformance operator seems to be a bit useless since it should not make a difference whether the label is polynominal or just nominal. Simply ignore the warning and try to run the process, everything should work without further problems.
Regards,
Helge0 -
Hi,
When I tried to run the process, everytime it got stuck at that performance operator and did not continue. So the application sort of hanged.
When I changed the label to nominal it worked fine.
Cheers0