The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

adding labels to a polynominal variable

Mori111Mori111 Member, University Professor Posts: 9 University Professor
I have a polynominal variable, Income, with 4 categories: <25, 25-49, 50-75. 75+. I want to add a label to each category. For example, for <25, I want to add (or replace it with) a label " Low Income". What is the simplest way to add labels to a polynominal variable? 

Answers

  • David_ADavid_A Administrator, Moderator, Employee-RapidMiner, RMResearcher, Member Posts: 297 RM Research

    you can easily rename/replace your categories with other values by using the Replace operator.
    To specify an attribute as label, you can use the Set Role operator and select "label" as target role. Be aware that each example set can only has one attribute marked as "label".

    Best,
    David
  • sgenzersgenzer Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
    @Mori111 yes as @David_A said, 'Replace' will work. So will the 'Map' operator. Or you can do it in Turbo Prep. :smile:
  • Mori111Mori111 Member, University Professor Posts: 9 University Professor
    Great Thanks. MAP operator works better because at the same time you can replace all values with labels. I haven't tested Turbo Prep yet.
Sign In or Register to comment.