Correction: cast as "factor" the class labels in partition sets.