source: trunk/CrossPare/test/de/ugoe/cs/cpdp/loader/AUDIChangeLoaderTest.java @ 144

Last change on this file since 144 was 38, checked in by sherbold, 9 years ago
  • added Oversampling and Resampling processors
  • fixed bug in ZScoreNormalizations
  • added new load for the Audi data set that is based on changes
  • minor changes to remove warnings
  • Property svn:mime-type set to text/plain
File size: 1.2 KB
Line 
1package de.ugoe.cs.cpdp.loader;
2
3import java.io.File;
4
5import org.junit.Test;
6
7import weka.core.Instances;
8import weka.core.converters.ArffSaver;
9
10public class AUDIChangeLoaderTest {
11
12        @Test
13        public void load() throws Exception {
14                AUDIChangeLoader loader = new AUDIChangeLoader();
15                ArffSaver saver = new ArffSaver();
16                Instances data;
17               
18                data = loader.load(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/A_mask_metric_src.csv"));
19                saver.setInstances(data);
20                saver.setFile(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/A_mask_change.arff"));
21                saver.writeBatch();
22               
23                data = loader.load(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/K_mask_metric_src.csv"));
24                saver.setInstances(data);
25                saver.setFile(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/K_mask_change.arff"));
26                saver.writeBatch();
27               
28                data = loader.load(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/L_mask_metric_src.csv"));
29                saver.setInstances(data);
30                saver.setFile(new File("C:/SWESVN/Papers/ICTSS/2015/trunk/defectprediction/Datenauswertung/L_mask_change.arff"));
31                saver.writeBatch();
32        }
33
34}
Note: See TracBrowser for help on using the repository browser.