I have a dataset in which the class labels of the training set are not from 0 to C-1. It is a subset of a bigger range, but in no particular order. Hence, if I take the max class id as C-1, there will be many ids for which there are no training examples.
It would be great if I could pass in the one-hot vectors. What could be a good way to do it that way ?
Thanks!