RapidMiner

RapidMiner

Multi Class Labels

Contributor

Multi Class Labels

Hi, i am working with the data set of multi class labels can any one help me how to compare ROCs for such multi class labels ,even i couldn't find how to plot the results of multi class labels. I have used Binary2Multiclass learner and Polynomial by binomial classification but i am not getting the curve. I would feel better if you send the related operators with wiring. Thanks in advance... 
13 REPLIES
Super Contributor

Re: Multi Class Labels

Hi,

ROC curves can only visualize binary classification problems - what kind of output do you expect?

Best regards,
Marius
Contributor

Re: Multi Class Labels

Hi Marius,
I am a newbie in Rapid Miner.
I am also facing same problem, when try to create a logistic model, here my label have more than 2 categories.
I know Logistic model is for modelling on Binomial Labels, But here I am asking that "How to Implement Multinomial Logistic Model in Rappid Miner"

Thanks in advance...
Super Contributor

Re: Multi Class Labels

Hi Rahul,

the Polynominal by Binominal Classification operator can help you.

Best regards,
Marius
Contributor

Re: Multi Class Labels

Hi Marius,

Thanks for your suggestion, It worked.
Now I am trying to understand its output, I used "Naive Bayes" Classifier in it.
Well Thanks again for your Help.  Smiley Happy

With Regards
Rahul Trivedi
Super Contributor

Re: Multi Class Labels

Well, Naive Bayes supports multi-class labels out of the box Smiley Happy

Actually Polynominal by Binominal Classification performs (by default) a one-vs.-all strategy: http://en.wikipedia.org/wiki/Multiclass_classification

Best regards,
Marius
Contributor II

Re: Multi Class Labels

]Hi,

I have similar problem: I have create a logistic model, my label have 3 categories.

I use Polynomial by Binomial Classification with subprocess Logistic Regression.

The problem is when I testing the model:

I use X-Validation. In the testing subprocess i use Apply Model > Performance and the console says that: Label and prediction must be of the same type but are polynominal and nominal, respectively.

I don't know how solve it.

RMStaff

Re: Multi Class Labels

Hi,

could you provide an example process?

Cheers,
Martin
--------------------------------------------------------------------------
Head of Data Science Services at RapidMiner
Contributor II

Re: Multi Class Labels

Tree Process:

>Retrieve DB

>Set Role

>X-Validation

>>Training

>>>Polynomial by Binomial Classification

>>>>Logistic Regression

>>Testing

>>>Apply Model

>>>%Performance

Error: Label and prediction must be of the same type but are polynominal and nominal, respectively.

I think that I have to use some operator more before %Perfomance but I don't know which.

The outport lab in Apply Model is:

label Y(LABEL) polynominal =[A, B, C] = 0
DifX                 real =[-2.097 – 2.398] = 0
prediction prediction(Y(LABEL)) nominal ⊆[A, B, C] = 0
confidence_A confidence(A) real ⊆[0 – 1] = 0
confidence_B confidence(B) real ⊆[0 – 1] = 0
confidence_C confidence(C) real ⊆[0 – 1] = 0

I don't know how solve it.
RMStaff

Re: Multi Class Labels

hi,

would it be possible to copy the process' xml?

Cheers,
Martin
--------------------------------------------------------------------------
Head of Data Science Services at RapidMiner