I was following the first example given in Accord.Net framework's documentation here to train a multi class SVM classifier with my own dataset but during the training loop the I got an error that says:
There are no samples for class label 3. Please make sure that class labels are contiguous and there is at least one training sample for each label.
The data that I'm using has 27 classes and 10 of the classes have less than 1000 samples in them so the batches returned by the MiniBatches object might not have samples from all of the available classes. Is there a way to resolve this issue without writing a custom object to sample from each class for each mini batch?