create attribute

m_hossein_mm_hossein_m Member Posts: 1 Contributor I
edited November 2018 in Help
hi friends
how can i create a multi class attribute(for ex new) from values of an atribute(a)
for ex:
if a=1 new=perfect
if a=2 new=good
if a=3 new=avg
.
.
......

thanks

Answers

  • sgenzersgenzer 12Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,446  Community Manager
    probably the easiest, assuming there is just a limited number of possibilities, is to copy the attribute and then use the Map operator to map 1 to perfect, 2 to good, etc...  You'll have to make the new copied attribute nominal of course.  If it's a lot of possibilities (more than 20?), then I would pull in a lookup data set and loop through.

    Scott
Sign In or Register to comment.