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

[Solved] Convert regular attribute to label?

indu625indu625 Member Posts: 1 Learner III
edited November 2018 in Help
Hi,

I used the R extension and wrote an R script that removes the label attribute from a set, does some transforming, then concatenates the label with the rest of the data.


ie) x <- dataSet[,2]

y <-  {some processing of x}

resultSet <- cbind( dataSet[,1] , y)    ##here dataSet[,1] is the label


The problem is that when I do this, the attribute changes from label to just a normal attribute.  My question is, is the a way to convert a normal attribute to a label?

Thanks in advance,
I

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi I,

    you can use the Set Role operator for that. Just select the attribute which should be the label and set its role to "label".
    For an introduction of RapidMiner's basic concepts please have a look at our documentation material and the video tutorials in the post linked in my signature.

    All the best,
    Marius
Sign In or Register to comment.