OneHotEncoding
Last updated
Last updated
Compatibility: Multiple numerical columns that contain 0/1 values
The OneHotEncoding
constraint enforces that a set of columns follow a. That is, exactly one of the columns must contain a value of 1
while all the others must be 0
.
(required) column_names
: A list of column names that, together, form the one hot encoding scheme
Define your constraint using the parameters and then add it to a synthesizer.