BinariesToCategory¶
- class torcheeg.transforms.BinariesToCategory[source][source]¶
Convert multiple binary labels into one multiclass label. Multiclass labels represent permutations of binary labels. Commonly used to combine two binary classification tasks into a single quad classification task.
transform = BinariesToCategory() transform(y=[0, 0])['y'] >>> 0 transform(y=[0, 1])['y'] >>> 1 transform(y=[1, 0])['y'] >>> 2 transform(y=[1, 1])['y'] >>> 3