Convert Boolean Variables to 0/1

0 Kudos

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.

1 Comment

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. 

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.