Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Setting Binominal Label to positive or negative
The binominal label in my process has the values “up” or “down”. When I use the operator Preformance (Binominal Classification), I have the option select “true positive”, “true negative” etc.
How do I ensure the value “up” is set as “positive”? Sometimes Rapidminer chooses “up” to be positive and other times it is negative.
Cheers,
Cleo
How do I ensure the value “up” is set as “positive”? Sometimes Rapidminer chooses “up” to be positive and other times it is negative.
Cheers,
Cleo
Tagged:
0
Answers
Can you not use the operator remap binomial (in the folder Nominal value Modification) to set what is to be considered positive? Give that a shot.
The remap binomial operator works perfectly.
Cheer,
Cleo
Just as a side note until the problem has been fixed: The order actually depends on the order of occurring in the read data set, if no different information is available. If you import the data once, this order is saved and fixed for now on.
If you want to combine different data sets, you will have to use the mentioned solution.
Greetings,
Sebastian
you won't see any difference in the data itself, but the meaning might be changed. Some operators like FP-Growth need to now, whats the positive and whats the negative value. Since there are to many values possible like true/false, 1/0, positive/negative, yes/no, we decided that the first element of the mapping will be treated as negative, the second as positive. As long as this isn't important for your process, you won't notice any difference.
Greetings,
Sebastian
I have a dataset with labels "true" and "false", and I want to use "Performance (Binominal Classification)" inside a XValidation to calculate precision and recall of the positive class, which should be "true". But most of the time the performance operator says "positive class: false", even though I inserted a "Remap Binominal", to map "false" to the negative value.
The data is read by two "Read CSV" and is combined via "Append". I made sure, that the operator which reads the negative examples is executed before the other one, and is connected to the first input port of "Append", nevertheless I have the described problem.
could you please post your process here? If possible you could somehow send me your data? I will check it then.
Greetings,
Sebastian
Thanks,
-Gagi
I sent you a link to my data via pm. I am using RapidMiner 5.0.005.
the solution is comparably easy:
Your label simply isn't binominal, so the remapping operator can't do anything about this. I must admit, that it should somehow notify you about this and I have added the proper meta data testing to the operator. This will be available with the next version.
To make your process work, you have to insert a nominal to binominal operator like in the process below: Greetings,
Sebastian
thanks for your reply. With the modified process I got it working.
But the "Nominal to Binominal" Operator has no effect unless I enable the option "transform binominal". So it seems that it believes that the data is already binominal. With this option enabled, the process works. But I have one remark: the "Remap Binominal" operator should output a warning if the example set does not contain the specified attribute or if the attribute does not contain the specified values. Currently it just continues, which is very annoying if you have a typo in one of the fields.
this is exactly what I added to the code immediately By the way: You must NOT turn this parameter on, unless you want to have your binominal attribute dichotomized. If you just want to change the attribute type, turn it off. If you make a breakpoint just after the operator, you will see that the type changed, but nothing more.
Greetings,
Sebastian
I have posted a small process to the RapidMiner's community extension. If you install this extension, you could open the process called "Correct Attribute Type to Binominal". Please take a look at it and if this does not work as expected, update your RapidMiner to the last version.
Greetings,
Sebastian