/** * builds the necessary CollectiveInstances from the given Instances * * @throws Exception if anything goes wrong */ @Override protected void generateSets() throws Exception { int i; super.generateSets(); m_CollectiveInstances = new CollectiveInstances(); m_CollectiveInstances.setSeed(getSeed()); m_CollectiveInstances.setFlipper(m_Flipper); m_TrainsetNew = new Instances(m_Trainset); for (i = 0; i < m_Testset.numInstances(); i++) m_TrainsetNew.add(m_Testset.instance(i)); m_FlipHistory = new FlipHistory(m_TrainsetNew); }