niteshade.utils.decode_one_hot

niteshade.utils.decode_one_hot(y)

Decode one hot encoded data.

Parameters

y (np.array, torch.tensor) – labels (encoded)

Returns

labels (decoded)

Return type

new_y (np.array, torch.tensor)