Nominal to Binominal - not all attributes converted

olgakulesza2
olgakulesza2 New Altair Community Member
edited November 2024 in Community Q&A

Hello, 

I wanted to convert my data to binominal to use it later in FP growth algorithm. 

However, when I was converting it, two last attributes od my data set didn't change. 

Can anyone tell me what to do?

binominal.png

Answers

  • rfuentealba
    rfuentealba New Altair Community Member

    Hi @olgakulesza2,

     

    You have three different values in your last two columns (or that's what I can see), hence you can't use bi-nominal but poly-nominals. bi-nominal means that these columns can only handle two types of values (like "true" or "false", "on" or "off", "dead" or "alive" etc).

     

    Depending on your use case, you may want to use the Generate Attributes before converting to binominal if you want to create an attribute named, e.g. book_176_present that contains "true" if there is a value in book_176, and "false" otherwise, and the same for book_177. However, as I said, it depends on your use case, this might not be the right path for you.

     

    All the best,