PLDATrainer: add check rank of F vs. number of classes in the training set