outputFormat.setClassIndex(instanceInfo.classIndex());
  public boolean setInputFormat(Instances instanceInfo) throws Exception {    super.setInputFormat(instanceInfo);    // Create the output buffer    Instances outputFormat = new Instances(instanceInfo, 0);     for(int i = 0; i < instanceInfo.numAttributes(); i++) {      if (m_SelectedCols.isInRange(i)) {	if (outputFormat.attribute(i).isNominal()	    || outputFormat.attribute(i).isNumeric()) {	  outputFormat.renameAttribute(i, outputFormat.attribute(i).name()				       + (m_InstanceRange < 0 ? '-' : '+')				       + Math.abs(m_InstanceRange));	} else {	  throw new UnsupportedAttributeTypeException("Only numeric and nominal attributes may be "                                                      + " manipulated in time series.");	}      }    }    setOutputFormat(outputFormat);    return true;  }