Last change
on this file since 87 was
38,
checked in by sherbold, 10 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 | |
---|
1 | package de.ugoe.cs.cpdp.loader;
|
---|
2 |
|
---|
3 | import java.io.File;
|
---|
4 |
|
---|
5 | import org.junit.Test;
|
---|
6 |
|
---|
7 | import weka.core.Instances;
|
---|
8 | import weka.core.converters.ArffSaver;
|
---|
9 |
|
---|
10 | public 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.