Options

"Changing the positive class of the dataset when showing f-measure performance measure"

bashabora95bashabora95 Member Posts: 3 Contributor I
edited June 2019 in Help

Hello dear RapidMiners! 

I have been using RapidMiner for the last couple of months and lately, I am doing a Project with it. 
I have a binominal class label with yes and no. The dataset is unbalanced so I need to upsample it (by using the Filter Examples and Append operators). The problem is that my class of interest is the yes, but that is the minority class. Somehow when I apply the algorithms and also the binominal classification Performance operator, when I see the f measure confusion matrix it has chosen no as the positive class. 
I tried everything, like sorting the values of the attribute or remapping but none made a change (i also tried them in different positions of the process). The only thing that made the trick was to do the connections between Filter Examples and Append a bit differently. Instead of connecting them like : 1st 'exa' port of 'Filter Examples' with 1st 'exa' port of 'Append', and the ori port of 'Filter Examples' with the 2nd exa port of 'Append', I connected them in a crossed way: the ori port of 'Filter Examples' with the 1st exa port of 'Append' ,and the 1st exa port of 'Filter Examples' with 2nd exa port of 'Append'. 
I wanted to ask if this is the correct way to solve this issue, or I should not do it because it doesnt make sense, or just continue with it because it doesnt make any great difference in the logic of how it works? (im not much familiar with the difference between exa and ori) 

Thank you very much in advance,
Bora.

Tagged:

Answers

  • Options
    lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn

    Hi @bashabora95,

     

    Have you tried the Nominal to Binominals operator associated to Remap Binominals operator ?

     

    I hope it helps

     

    Regards,

     

    Lionel

     

    NB : I encourage you to type directly your request in the operators search box : 

    In your case,by typing "positive" or "negative" in this search box, you obtain the Remap Binominals.

  • Options
    bashabora95bashabora95 Member Posts: 3 Contributor I

    Hello @lionelderkrikor

    Thank you for your reply. 
    I am aware of the Remap Binominals operator, maybe I didn't explain it clearly that I tried that but is not helping, and my label class is already of type Binominal so the Nominal to Binominal operator wouldn't find my class label since it is not nominal but binominal.
    What about the trick I am doing, should I do it or it makes background changes that I am unaware and that shouldn't be done? 

    Thanks again and regards, 
    Bora 

Sign In or Register to comment.