one_hot

one_hot(y, num_labels='auto', dtype='float')

One-hot encoding of class labels

Parameters

Returns

Examples

For usage examples, please see http://rasbt.github.io/mlxtend/user_guide/preprocessing/one_hot/