if (!data.classAttribute().isNominal()) { throw new UnsupportedClassTypeException("Vote: Nominal class, please."); }
  public void buildClassifier(Instances data) throws Exception {    if (m_Classifiers.length == 0) {      throw new Exception("No base classifiers have been set!");    }    Instances newData = new Instances(data);    m_NumClasses=data.numClasses();    newData.deleteWithMissingClass();    newData.randomize(new Random(m_Seed));    Instances train = newData;               // train on all data by default    int numClassifiers = m_Classifiers.length;    for (int i = 0; i < numClassifiers; i++) {      Classifier currentClassifier = getClassifier(i);      currentClassifier.buildClassifier(data);    }  }