One-hot encoding (source code)

= One-hot encoding

Representation of one categorical outcome by a vector with one component equal to one and all other components zero.