- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, Freezable
- Enclosing class:
- FrameUtils
public static class FrameUtils.CategoricalBinaryEncoder
extends Iced
Helper to convert a categorical variable into a "binary" encoding format. In this format each categorical value is
first assigned an integer value, then that integer is written in binary, and each bit column is converted into a
separate column. This is intended as an improvement to an existing one-hot transformation.
For each categorical variable we assume that the number of categories is 1 + domain cardinality, the extra
category is reserved for NAs.
See http://www.willmcginnis.com/2015/11/29/beyond-one-hot-an-exploration-of-categorical-variables/
- See Also:
- Serialized Form