I have a dataset with labels that only have three values: -1, 0, 1. In other words, I have a calssification problem for three classes with -1, 0, 1 labels
Can I use this raw labels for training a CNN or I have to map them with indices between [0 to num_classes - 1] like bellow?
idx_to_label = {
    0: '0',
    1: '1',
    2: '-1'
}

Thanks in advance for any help.