ASCAD icon indicating copy to clipboard operation
ASCAD copied to clipboard

Error in creating labels for ASCADv2 dataset

Open linghan1997 opened this issue 2 years ago • 0 comments

I wonder what's the label for y = to_categorical(Y_profiling, num_classes=256) since Y contains multiple tensors within one sample? The error of course occurs: TypeError: Cannot cast array data from dtype([('alpha_mask', 'u1', (1,)), ('beta_mask', 'u1', (1,)), ('sbox_masked', 'u1', (16,)), ('sbox_masked_with_perm', 'u1', (16,)), ('perm_index', 'u1', (16,))]) to dtype('int64')

linghan1997 avatar Oct 02 '23 18:10 linghan1997