@@ -0,0 +1,1343 @@
+package net.lifove.research.utils;%0A%0Aimport static org.junit.Assert.*;%0Aimport net.lifove.research.utils.WekaUtils;%0A%0Aimport org.junit.Test;%0A%0Aimport weka.core.Instances;%0A%0Apublic class CrossPredictionTest %7B%0A%09%0A%09@Test%0A%09public void testCrossPrediciton()%7B%0A%09%09//Instances srcInstances = WekaUtils.loadArff(%22../../Documents/temp/ODP/arffsManuallyCleaned/7/train.arff%22);%0A%09%09//Instances tarInstances = WekaUtils.loadArff(%22../../Documents/temp/ODP/arffsManuallyCleaned/7/test.arff%22);%0A%09%09%0A%09%09Instances srcInstances = WekaUtils.loadArff(%22/Users/JC/Documents/HKUST/Research/CDDP/workspace/CrossPredictionSimulator/data/AEEEM/EQ.arff%22);%0A%09%09Instances tarInstances = WekaUtils.loadArff(%22/Users/JC/Documents/HKUST/Research/CDDP/workspace/CrossPredictionSimulator/data/AEEEM/JDT.arff%22);%0A%09%09%0A%09%09Measure m = SimpleCrossPredictor.crossPrediction(srcInstances,tarInstances,%22weka.classifiers.functions.Logistic%22,%22buggy%22);%0A%09%09System.out.println(m.AUC);%0A%09%09m = SimpleCrossPredictor.crossPrediction(srcInstances,tarInstances,%22weka.classifiers.functions.Logistic%22,%22clean%22);%0A%09%09System.out.println(m.AUC);%0A%09%09m = SimpleCrossPredictor.crossPrediction(srcInstances,tarInstances,%22weka.classifiers.trees.J48%22,%22clean%22);%0A%09%09System.out.println(m.AUC);%0A%09%09m = SimpleCrossPredictor.crossPrediction(srcInstances,tarInstances,%22weka.classifiers.trees.J48%22,%22buggy%22);%0A%09%09System.out.println(m.AUC);%0A%09%7D%0A%7D%0A

Add cross prediciton test case