if (!att.isNominal()) {
if (!att.isNominal() || (j == getInputFormat().classIndex())) {
  private void convertInstance(Instance instance) {      double [] vals = new double [outputFormatPeek().numAttributes()];    int attSoFar = 0;    for(int j = 0; j < getInputFormat().numAttributes(); j++) {      Attribute att = getInputFormat().attribute(j);      if (!att.isNominal()) {	vals[attSoFar] = instance.value(j);	attSoFar++;      } else {	if (att.numValues() <= 2) {	  vals[attSoFar] = instance.value(j);	  attSoFar++;	} else {	  if (instance.isMissing(j)) {	    for (int k = 0; k < att.numValues(); k++) {              vals[attSoFar + k] = instance.value(j);	    }	  } else {	    for (int k = 0; k < att.numValues(); k++) {	      if (k == (int)instance.value(j)) {                vals[attSoFar + k] = 1;	      } else {                vals[attSoFar + k] = 0;	      }	    }	  }	  attSoFar += att.numValues();	}      }    }    Instance inst = null;    if (instance instanceof SparseInstance) {      inst = new SparseInstance(instance.weight(), vals);    } else {      inst = new Instance(instance.weight(), vals);    }    copyStringValues(inst, false, instance.dataset(), getInputStringIndex(),                     getOutputFormat(), getOutputStringIndex());    inst.setDataset(getOutputFormat());    push(inst);  }