Data Transformation, Sklearn, Machine Learning, One Hot Encoding, Label Encoding.
the shape category example into account. If the shape is, say, ‘triangle‘, then it is labeled as 1 and all other shapes are labeled as zero. The following image may clear some things up[3]. Then, a one hot encoding can be applied to the ordinal representation. This is where one new binary variable