How to reduce attribute to 3 values

Atilla
Atilla New Altair Community Member
edited November 5 in Community Q&A
Dear RapidMiner Community,
I am struggeling to figure out , how to reduce my target attribute (Label) to 3 values.
The target attribute is identified as integer and contains following numbers: 1,2,3,4,5,6,7,8,9


The aim is, to transform the numbers into following form:
Low quality (values <6)
Medium quality (values = 6)
High quality (values > 6)

So in the end, it should be displayed for instance low quality instead the numbers (1,2,3,4,5)
This is meant by saying reducing attribute into 3 values (low-, medium-, high quality).
I thing it could be done with Turbo Prep or Transformation Operator but I don´t have a clue.

I would be gratefull to get any tips or tricks
Atilla






Best Answer

Answers

  • lionelderkrikor
    lionelderkrikor New Altair Community Member
    Answer ✓
    Hi @Atilla,

    Very simple : you can use Generate Attributes operator for that.

    Please check the process in attached file.

    Regards,

    Lionel
  • Atilla
    Atilla New Altair Community Member
    firstly I need to decrease my heart rate, your response is awesome. Got the right solution faster than I ever might be imagine. Thank you a lot