BinaryEncoder
Compatibility: boolean
data
The BinaryEncoder
transforms True
and False
values into numerical values of 0
and 1
.
Parameters
missing_value_replacement
: Add this argument to replace missing values during the transform phase
(default) | Replace all missing values with the average value. |
| Replace all missing values with the most frequently occurring value |
| Replace all missing values with the specified number ( |
| Do not replace missing values. The transformed data will continue to have missing values. |
(deprecated) model_missing_values
: Use the missing_value_generation
parameter instead.
missing_value_generation
: Add this argument to determine how to recreate missing values during the reverse transform phase
(default) | Randomly assign missing values in roughly the same proportion as the original data. |
| Create a new column to store whether the value should be missing. Use it to recreate missing values. Note: Adding extra columns uses more memory and increases the RDT processing time. |
| Do not recreate missing values. |
Examples
FAQs
Last updated