push(new Instance(instance.weight(), instance.toDoubleArray()));
inst = new Instance(instance.weight(), instance.toDoubleArray()); inst.setDataset(instance.dataset());
  public boolean input(Instance instance) throws Exception {    if (getInputFormat() == null) {      throw new Exception("No input instance format defined");    }    if (m_NewBatch) {      resetQueue();      m_NewBatch = false;    }    if (instance instanceof SparseInstance) {      push(new Instance(instance.weight(), instance.toDoubleArray()));    } else {      push(instance);    }    return true;  }