🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Reverse map a nominal to numerical transform

User: "labbronx"
New Altair Community Member
Updated by Jocelyn

I am using K-means to cluster the data. To do so, I have transformed my nominal values into numerical ones using the Nominal to Numerical operator, but using the coding type parameter set to "unique integers." How do I reverse this transformation so on output I can see what these values were in the clusters before they were transformed. For example, if "sandwich" gets mapped to 0, I would like to reverse map 0 back to sandwich.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "FBT"
    New Altair Community Member
    Accepted Answer

    It may not be the most elegant solution, but what you could do is the following:

     

    Multiply your example set prior to the type conversation. Connect the first output of the multiply operator to your current process, after which you add a join operator and connect the resulting example set to the left port. Connect the second output of multiply to the right port of the join. 

     

    You will need an id on which to make the join and you may want to make some pre-processing (renaming attributes, etc.).