Nominal2Binomial format

Shubha
Shubha New Altair Community Member
edited November 5 in Community Q&A
Hi,

I changed a Nominal attribute to Binomial attribute. Now, the binomial attributes have the values, "true" and "false". But, I dont want it to be so. I want 1 and 0 instead of "true" and "false". How do i do this? Is there any option while doing the Nominal2Binolian to take this option? This would be a better way....

Another way is to now change all the dummy variable (say hundredss of them) codings using some mappings or so? Is there a better method for this too?

In general what is the best method to handle this problem?

Many thanks, Shubha
Tagged:

Answers

  • steffen
    steffen New Altair Community Member
    Hello

    Try Mapping and FeatureIterator

    hope that was helpful

    regards,

    Steffen
  • haddock
    haddock New Altair Community Member
    Hi all,

    Rapidminer is like Lego, you can build things in different ways, so here is an alternative...

    <operator name="Root" class="Process" expanded="yes">
        <operator name="ExampleSetGenerator" class="ExampleSetGenerator" breakpoints="after">
            <parameter key="target_function" value="interaction classification"/>
        </operator>
        <operator name="AttributeSubsetPreprocessing" class="AttributeSubsetPreprocessing" expanded="yes">
            <parameter key="condition_class" value="is_nominal"/>
            <parameter key="process_special_attributes" value="true"/>
            <operator name="Nominal2Numerical" class="Nominal2Numerical">
            </operator>
        </operator>
    </operator>
    But,  just like with Lego, it is a good idea for beginners to have a look at working models first, why not check out help->Rapidminer Tutorial  ;)