Convert Boolean Variables to 0/1

driscoll42
driscoll42 Registered Posts: 6

When I bring Boolean variables to my model, it treats them as Categorical. The default option is to dummy encode which makes a column of var_false and var_true. It should convert the boolean in the column to 0 and 1, to leave it as one column, not make a second redundant column.

0
0 votes

New · Last Updated

Comments

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,161 Neuron

    I am not a Data Scientist but from what I understand dummy encoding them into a single column with 0/1 values will indicate to the model there is a "distance" between the two values which I don't think applies to boolean values. So perhaps that's why Dataiku does it on separate columns.

Setup Info
    Tags
      Help me…