for (int i = 0; i<instances.numAttributes()-1; i++) { attributes.addElement(instances.attribute(i));
for (int i = 0; i<instances.numAttributes(); i++) { if ( i != instances.classIndex() ) { attributes.addElement(instances.attribute(i)); }
  protected Instances metaFormat(Instances instances) throws Exception {    FastVector attributes = new FastVector();    Instances metaFormat;        for (int i = 0; i<instances.numAttributes()-1; i++) {      attributes.addElement(instances.attribute(i));    }    FastVector nomElements = new FastVector(2);    nomElements.addElement("0");    nomElements.addElement("1");    attributes.addElement(new Attribute("PredConf",nomElements));    metaFormat = new Instances("Meta format", attributes, 0);    metaFormat.setClassIndex(metaFormat.numAttributes()-1);    return metaFormat;  }