label role for more than one attribute

sgenzer
sgenzer
Altair Employee
edited November 2024 in Community Q&A
How do I get more than one attribute to have a label role without going into the data editor?  If I use the Set Role operator, all I do is set one attribute, and if I try to do another, the prior one gets replaced.

Thanks.

Scott
Tagged:

Answers

  • David_A
    David_A New Altair Community Member
    Hi Scott,

    The label Role, as well as the ID for example, is a unique role.This is normally very useful otherwise making joins or validation would get very complicated.
    What you can to is to set the role of your first label to 'regular' if you want to keep it when adding another label

    Best,
    David
  • JEdward
    JEdward New Altair Community Member
    You can actually free-type when entering in the values so you can have attributes with the role label, label2, label3, etc.

    Use the operator Loop Labels to cycle through those labels for different predictions.  (See model documentation for a sample process)
  • sgenzer
    sgenzer
    Altair Employee
    thank you both.  I know you can have more than one label attribute because you can see it as a result when you run certain processes that I did not create (e.g. if you use the Aylien Sentiment Analysis operator).  Yes I know I can do it manually (i.e. via the data editor) but was looking for a simpler, more automatic way to do it.  I will try the looping and see how that goes.

    Scott