[59] | 1 | package de.ugoe.cs.crosspare;
|
---|
| 2 |
|
---|
| 3 | import java.io.FileWriter;
|
---|
| 4 | import java.io.IOException;
|
---|
| 5 | import java.lang.reflect.InvocationTargetException;
|
---|
| 6 | import java.security.InvalidParameterException;
|
---|
| 7 |
|
---|
| 8 | public class ConfigurationBuilder {
|
---|
| 9 |
|
---|
[133] | 10 | private static enum Dataset {MDP, JURECZKO, FILTERJURECZKO, AEEEM, RELINK, NETGENE, SELECTEDJURECZKO};
|
---|
| 11 |
|
---|
[59] | 12 | private static final String storageFolder = "config/";
|
---|
| 13 |
|
---|
| 14 | public static void main(String[] args) {
|
---|
| 15 | for( Dataset dataset : Dataset.values() ) {
|
---|
[133] | 16 | // baselines
|
---|
| 17 | writeFile("ALL", dataset);
|
---|
| 18 | writeFile("CV", dataset);
|
---|
| 19 | writeFile("Random", dataset);
|
---|
| 20 | writeFile("Trivial", dataset);
|
---|
| 21 | // publications
|
---|
| 22 | writeFile("Koshgoftaar08", dataset);
|
---|
| 23 | writeFile("Watanabe08", dataset);
|
---|
| 24 | writeFile("Turhan09", dataset);
|
---|
| 25 | writeFile("Zimmermann09", dataset);
|
---|
| 26 | writeFile("CamargoCruz09", dataset);
|
---|
| 27 | writeFile("Liu10", dataset);
|
---|
| 28 | writeFile("Menzies11", dataset);
|
---|
| 29 | writeFile("Ma12", dataset);
|
---|
| 30 | writeFile("Peters12", dataset);
|
---|
| 31 | writeFile("Uchigaki12", dataset);
|
---|
| 32 | writeFile("Canfora13", dataset);
|
---|
| 33 | writeFile("Peters13", dataset);
|
---|
| 34 | writeFile("Herbold13", dataset);
|
---|
| 35 | writeFile("ZHe13", dataset);
|
---|
| 36 | writeFile("Nam13", dataset);
|
---|
| 37 | writeFile("Panichella14", dataset);
|
---|
| 38 | writeFile("Ryu14", dataset);
|
---|
| 39 | writeFile("PHe15", dataset);
|
---|
| 40 | writeFile("Peters15", dataset);
|
---|
| 41 | writeFile("Kawata15", dataset);
|
---|
| 42 | writeFile("YZhang15", dataset);
|
---|
| 43 | writeFile("Amasaki15", dataset);
|
---|
| 44 | writeFile("Ryu15", dataset);
|
---|
| 45 | writeFile("Nam15", dataset);
|
---|
[59] | 46 | }
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | public static void writeFile(String approach, Dataset dataset) {
|
---|
| 50 | FileWriter writer;
|
---|
| 51 | try {
|
---|
| 52 | writer = new FileWriter(storageFolder + dataset.toString() + "-" + approach + ".xml");
|
---|
| 53 | writer.append((String) ConfigurationBuilder.class.getMethod(approach, Dataset.class).invoke(null, dataset));
|
---|
| 54 | writer.flush();
|
---|
| 55 | writer.close();
|
---|
| 56 | }
|
---|
| 57 | catch (IOException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) {
|
---|
| 58 | e.printStackTrace();
|
---|
| 59 | }
|
---|
| 60 | }
|
---|
| 61 |
|
---|
| 62 | public static void preamble(StringBuilder configFile) {
|
---|
| 63 | configFile.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
|
---|
| 64 | configFile.append("<config xmlns=\"experimentconfig\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"experimentconfig experimentconfig.xsd\">\n");
|
---|
| 65 | }
|
---|
| 66 |
|
---|
| 67 | public static void postamble(StringBuilder configFile) {
|
---|
[80] | 68 | configFile.append(" <storage name=\"MySQLResultStorage\" param=\"\" />\n");
|
---|
[59] | 69 | configFile.append("</config>");
|
---|
| 70 | }
|
---|
| 71 |
|
---|
| 72 | public static void trainers(StringBuilder configFile) {
|
---|
[133] | 73 | configFile.append(" <trainer name=\"WekaTraining\" param=\"NB weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
| 74 | configFile.append(" <trainer name=\"WekaTraining\" param=\"RF weka.classifiers.trees.RandomForest -CVPARAM I 5 25 5\" />\n");
|
---|
| 75 | configFile.append(" <trainer name=\"WekaTraining\" param=\"DT weka.classifiers.trees.J48 -CVPARAM C 0.1 0.3 5\" />\n");
|
---|
| 76 | configFile.append(" <trainer name=\"WekaTraining\" param=\"LR weka.classifiers.functions.Logistic\" />\n");
|
---|
| 77 | configFile.append(" <trainer name=\"WekaTraining\" param=\"NET weka.classifiers.functions.RBFNetwork -CVPARAM W 0.1 10.0 3.0 L 2.0 18.0 3.0\" />\n");
|
---|
| 78 | configFile.append(" <trainer name=\"WekaTraining\" param=\"SVM weka.classifiers.functions.SMO -K weka.classifiers.functions.supportVector.RBFKernel\" />\n");
|
---|
[59] | 79 | }
|
---|
| 80 |
|
---|
| 81 | public static void trainersBagging(StringBuilder configFile) {
|
---|
[133] | 82 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"NB weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
| 83 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"RF weka.classifiers.trees.RandomForest -CVPARAM I 5 25 5\" />\n");
|
---|
| 84 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"DT weka.classifiers.trees.J48 -CVPARAM C 0.1 0.3 5\" />\n");
|
---|
| 85 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"LR weka.classifiers.functions.Logistic\" />\n");
|
---|
| 86 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"NET weka.classifiers.functions.RBFNetwork -CVPARAM W 0.1 10.0 3.0 L 2.0 18.0 3.0\" />\n");
|
---|
| 87 | configFile.append(" <setwisetrainer name=\"WekaBaggingTraining\" param=\"SVM weka.classifiers.functions.SMO -K weka.classifiers.functions.supportVector.RBFKernel\" />\n");
|
---|
[59] | 88 | }
|
---|
| 89 |
|
---|
| 90 | public static void trainersLocalWhere(StringBuilder configFile) {
|
---|
[133] | 91 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"NB weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
| 92 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"RF weka.classifiers.trees.RandomForest -CVPARAM I 5 25 5\" />\n");
|
---|
| 93 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"DT weka.classifiers.trees.J48 -CVPARAM C 0.1 0.3 5\" />\n");
|
---|
| 94 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"LR weka.classifiers.functions.Logistic\" />\n");
|
---|
| 95 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"NET weka.classifiers.functions.RBFNetwork -CVPARAM W 0.1 10.0 3.0 L 2.0 18.0 3.0\" />\n");
|
---|
| 96 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"SVM weka.classifiers.functions.SMO -K weka.classifiers.functions.supportVector.RBFKernel\" />\n");
|
---|
| 97 | configFile.append(" <trainer name=\"WekaLocalFQTraining\" param=\"WHICH de.ugoe.cs.cpdp.wekaclassifier.WHICH\" />\n");
|
---|
[59] | 98 | }
|
---|
| 99 |
|
---|
| 100 | public static void trainersLASER(StringBuilder configFile) {
|
---|
[133] | 101 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"NB weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
| 102 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"RF weka.classifiers.trees.RandomForest -CVPARAM I 5 25 5\" />\n");
|
---|
| 103 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"DT weka.classifiers.trees.J48 -CVPARAM C 0.1 0.3 5\" />\n");
|
---|
| 104 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"LR weka.classifiers.functions.Logistic\" />\n");
|
---|
| 105 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"NET weka.classifiers.functions.RBFNetwork -CVPARAM W 0.1 10.0 3.0 L 2.0 18.0 3.0\" />\n");
|
---|
| 106 | configFile.append(" <trainer name=\"WekaLASERTraining\" param=\"SVM weka.classifiers.functions.SMO -K weka.classifiers.functions.supportVector.RBFKernel\" />\n");
|
---|
[59] | 107 | }
|
---|
| 108 |
|
---|
| 109 | public static void dataset(StringBuilder configFile, Dataset dataset) {
|
---|
| 110 | switch (dataset)
|
---|
| 111 | {
|
---|
| 112 | case MDP:
|
---|
[80] | 113 | configFile.append(" <loader name=\"NasaARFFFolderLoader\" datalocation=\"benchmark/data/MDP\" relative=\"false\"/>\n");
|
---|
[59] | 114 | break;
|
---|
| 115 | case JURECZKO:
|
---|
[80] | 116 | configFile.append(" <loader name=\"CSVFolderLoader\" datalocation=\"benchmark/data/JURECZKO\" relative=\"false\"/>\n");
|
---|
[59] | 117 | break;
|
---|
[133] | 118 | case FILTERJURECZKO:
|
---|
| 119 | configFile.append(" <loader name=\"CSVFolderLoader\" datalocation=\"benchmark/data/JURECZKO\" relative=\"false\"/>\n");
|
---|
| 120 | configFile.append(" <versionfilter name=\"MinInstanceNumberFilter\" param=\"100\" />\n");
|
---|
| 121 | configFile.append(" <versionfilter name=\"UnbalancedFilter\" param=\"0.05\" />\n");
|
---|
| 122 | break;
|
---|
| 123 | case AEEEM:
|
---|
| 124 | configFile.append(" <loader name=\"ARFFFolderLoader\" datalocation=\"benchmark/data/AEEEM\" relative=\"false\"/>\n");
|
---|
| 125 | break;
|
---|
| 126 | case RELINK:
|
---|
| 127 | configFile.append(" <loader name=\"RelinkFolderLoader\" datalocation=\"benchmark/data/RELINK\" relative=\"false\"/>\n");
|
---|
| 128 | break;
|
---|
| 129 | case NETGENE:
|
---|
| 130 | configFile.append(" <loader name=\"NetgeneFolderLoader\" datalocation=\"benchmark/data/NETGENE\" relative=\"false\"/>\n");
|
---|
| 131 | break;
|
---|
| 132 | case SELECTEDJURECZKO:
|
---|
| 133 | configFile.append(" <loader name=\"CSVFolderLoader\" datalocation=\"benchmark/data/SELECTEDJURECZKO\" relative=\"false\"/>\n");
|
---|
| 134 | break;
|
---|
[59] | 135 | default:
|
---|
| 136 | throw new InvalidParameterException("Unknown data set: " + dataset.toString());
|
---|
| 137 | }
|
---|
[133] | 138 | configFile.append(" <versionfilter name=\"MinClassNumberFilter\" param=\"5\" />\n");
|
---|
| 139 | configFile.append(" <resultspath path=\"benchmark/results-csv\"/>\n");
|
---|
[59] | 140 | }
|
---|
| 141 |
|
---|
[133] | 142 | public static String ALL(Dataset dataset) {
|
---|
[59] | 143 | StringBuilder configFile = new StringBuilder();
|
---|
| 144 | preamble(configFile);
|
---|
| 145 | dataset(configFile, dataset);
|
---|
[133] | 146 | trainers(configFile);
|
---|
| 147 |
|
---|
| 148 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 149 |
|
---|
| 150 | postamble(configFile);
|
---|
| 151 | return configFile.toString();
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | public static String CV(Dataset dataset) {
|
---|
| 155 | StringBuilder configFile = new StringBuilder();
|
---|
| 156 | preamble(configFile);
|
---|
| 157 | dataset(configFile, dataset);
|
---|
| 158 | trainers(configFile);
|
---|
| 159 |
|
---|
| 160 | configFile.append(" <eval name=\"CVWekaEvaluation\" param=\"\" />\n");
|
---|
| 161 |
|
---|
| 162 | postamble(configFile);
|
---|
| 163 | return configFile.toString();
|
---|
| 164 | }
|
---|
| 165 |
|
---|
| 166 | public static String Random(Dataset dataset) {
|
---|
| 167 | StringBuilder configFile = new StringBuilder();
|
---|
| 168 | preamble(configFile);
|
---|
| 169 | dataset(configFile, dataset);
|
---|
| 170 |
|
---|
| 171 | configFile.append(" <trainer name=\"WekaTraining\" param=\"RANDOM de.ugoe.cs.cpdp.wekaclassifier.RandomClass\" />\n");
|
---|
| 172 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 173 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
| 174 |
|
---|
| 175 | postamble(configFile);
|
---|
| 176 | return configFile.toString();
|
---|
| 177 | }
|
---|
| 178 |
|
---|
| 179 | public static String Trivial(Dataset dataset) {
|
---|
| 180 | StringBuilder configFile = new StringBuilder();
|
---|
| 181 | preamble(configFile);
|
---|
| 182 | dataset(configFile, dataset);
|
---|
| 183 |
|
---|
| 184 | configFile.append(" <trainer name=\"WekaTraining\" param=\"FIX de.ugoe.cs.cpdp.wekaclassifier.FixClass -C 1\" />\n");
|
---|
| 185 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 186 |
|
---|
| 187 | postamble(configFile);
|
---|
| 188 | return configFile.toString();
|
---|
| 189 | }
|
---|
| 190 |
|
---|
| 191 | public static String Koshgoftaar08(Dataset dataset) {
|
---|
| 192 | StringBuilder configFile = new StringBuilder();
|
---|
| 193 | preamble(configFile);
|
---|
| 194 | dataset(configFile, dataset);
|
---|
[59] | 195 | trainersBagging(configFile);
|
---|
| 196 |
|
---|
| 197 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 198 |
|
---|
| 199 | postamble(configFile);
|
---|
| 200 | return configFile.toString();
|
---|
| 201 | }
|
---|
| 202 |
|
---|
[133] | 203 | public static String Watanabe08(Dataset dataset) {
|
---|
[59] | 204 | StringBuilder configFile = new StringBuilder();
|
---|
| 205 | preamble(configFile);
|
---|
| 206 | dataset(configFile, dataset);
|
---|
| 207 | trainers(configFile);
|
---|
| 208 |
|
---|
| 209 | configFile.append(" <setwisepreprocessor name=\"AverageStandardization\" param=\"\" />\n");
|
---|
| 210 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 211 |
|
---|
| 212 | postamble(configFile);
|
---|
| 213 | return configFile.toString();
|
---|
| 214 | }
|
---|
| 215 |
|
---|
[133] | 216 | public static String Turhan09(Dataset dataset) {
|
---|
[59] | 217 | StringBuilder configFile = new StringBuilder();
|
---|
| 218 | preamble(configFile);
|
---|
| 219 | dataset(configFile, dataset);
|
---|
| 220 | trainers(configFile);
|
---|
| 221 |
|
---|
| 222 | configFile.append(" <preprocessor name=\"LogarithmTransform\" param=\"\" />\n");
|
---|
| 223 | configFile.append(" <pointwiseselector name=\"TurhanFilter\" param=\"10\" />\n");
|
---|
| 224 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 225 |
|
---|
| 226 | postamble(configFile);
|
---|
| 227 | return configFile.toString();
|
---|
| 228 | }
|
---|
| 229 |
|
---|
[133] | 230 | public static String Zimmermann09(Dataset dataset) {
|
---|
[59] | 231 | StringBuilder configFile = new StringBuilder();
|
---|
| 232 | preamble(configFile);
|
---|
| 233 | dataset(configFile, dataset);
|
---|
| 234 | trainers(configFile);
|
---|
| 235 |
|
---|
[133] | 236 | configFile.append(" <setwiseselector name=\"DecisionTreeSelection\" param=\"max median stddev\" />\n");
|
---|
| 237 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 238 |
|
---|
| 239 | postamble(configFile);
|
---|
| 240 | return configFile.toString();
|
---|
| 241 | }
|
---|
| 242 |
|
---|
| 243 | public static String CamargoCruz09(Dataset dataset) {
|
---|
| 244 | StringBuilder configFile = new StringBuilder();
|
---|
| 245 | preamble(configFile);
|
---|
| 246 | dataset(configFile, dataset);
|
---|
| 247 | trainers(configFile);
|
---|
| 248 |
|
---|
[59] | 249 | configFile.append(" <preprocessor name=\"LogarithmTransform\" param=\"\" />\n");
|
---|
| 250 | configFile.append(" <preprocessor name=\"MedianAsReference\" param=\"10\" />\n");
|
---|
| 251 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 252 |
|
---|
| 253 | postamble(configFile);
|
---|
| 254 | return configFile.toString();
|
---|
| 255 | }
|
---|
| 256 |
|
---|
[133] | 257 | public static String Liu10(Dataset dataset) {
|
---|
| 258 | StringBuilder configFile = new StringBuilder();
|
---|
| 259 | preamble(configFile);
|
---|
| 260 | dataset(configFile, dataset);
|
---|
| 261 |
|
---|
| 262 | configFile.append(" <setwisetrainer name=\"GPTraining\" param=\"numberRuns:1,errorType2Weight:15\" />");
|
---|
| 263 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 264 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
| 265 |
|
---|
| 266 | postamble(configFile);
|
---|
| 267 | return configFile.toString();
|
---|
| 268 | }
|
---|
[59] | 269 |
|
---|
[133] | 270 | public static String Menzies11(Dataset dataset) {
|
---|
[59] | 271 | StringBuilder configFile = new StringBuilder();
|
---|
| 272 | preamble(configFile);
|
---|
| 273 | dataset(configFile, dataset);
|
---|
| 274 |
|
---|
| 275 | trainersLocalWhere(configFile);
|
---|
| 276 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 277 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[59] | 278 |
|
---|
| 279 | postamble(configFile);
|
---|
| 280 | return configFile.toString();
|
---|
| 281 | }
|
---|
| 282 |
|
---|
[133] | 283 | public static String Ma12(Dataset dataset) {
|
---|
[59] | 284 | StringBuilder configFile = new StringBuilder();
|
---|
| 285 | preamble(configFile);
|
---|
| 286 | dataset(configFile, dataset);
|
---|
| 287 | trainers(configFile);
|
---|
| 288 |
|
---|
| 289 | configFile.append(" <preprocessor name=\"DataGravitation\" param=\"\" />\n");
|
---|
| 290 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 291 |
|
---|
| 292 | postamble(configFile);
|
---|
| 293 | return configFile.toString();
|
---|
| 294 | }
|
---|
| 295 |
|
---|
[133] | 296 | public static String Peters12(Dataset dataset) {
|
---|
[59] | 297 | StringBuilder configFile = new StringBuilder();
|
---|
| 298 | preamble(configFile);
|
---|
| 299 | dataset(configFile, dataset);
|
---|
| 300 | trainers(configFile);
|
---|
| 301 |
|
---|
| 302 | configFile.append(" <preprocessor name=\"MORPH\" param=\"\" />\n");
|
---|
| 303 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 304 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[59] | 305 |
|
---|
| 306 | postamble(configFile);
|
---|
| 307 | return configFile.toString();
|
---|
| 308 | }
|
---|
| 309 |
|
---|
[133] | 310 | public static String Uchigaki12(Dataset dataset) {
|
---|
[59] | 311 | StringBuilder configFile = new StringBuilder();
|
---|
| 312 | preamble(configFile);
|
---|
| 313 | dataset(configFile, dataset);
|
---|
| 314 |
|
---|
[80] | 315 | configFile.append(" <preprocessor name=\"ZScoreNormalization\" param=\"\" />\n");
|
---|
[133] | 316 | configFile.append(" <trainer name=\"WekaTraining\" param=\"LE de.ugoe.cs.cpdp.wekaclassifier.LogisticEnsemble\" />\n");
|
---|
[59] | 317 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 318 |
|
---|
| 319 | postamble(configFile);
|
---|
| 320 | return configFile.toString();
|
---|
| 321 | }
|
---|
| 322 |
|
---|
[133] | 323 | public static String Canfora13(Dataset dataset) {
|
---|
[80] | 324 | StringBuilder configFile = new StringBuilder();
|
---|
| 325 | preamble(configFile);
|
---|
| 326 | dataset(configFile, dataset);
|
---|
| 327 |
|
---|
| 328 | configFile.append(" <preprocessor name=\"ZScoreNormalization\" param=\"\" />\n");
|
---|
| 329 | configFile.append(" <trainer name=\"WekaTraining\" param=\"MODEP de.ugoe.cs.cpdp.wekaclassifier.MODEPClassifier -R 0.7\" />\n");
|
---|
| 330 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 331 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[80] | 332 |
|
---|
| 333 | postamble(configFile);
|
---|
| 334 | return configFile.toString();
|
---|
| 335 | }
|
---|
[59] | 336 |
|
---|
[133] | 337 | public static String Peters13(Dataset dataset) {
|
---|
[59] | 338 | StringBuilder configFile = new StringBuilder();
|
---|
| 339 | preamble(configFile);
|
---|
| 340 | dataset(configFile, dataset);
|
---|
| 341 | trainers(configFile);
|
---|
| 342 |
|
---|
| 343 | configFile.append(" <preprocessor name=\"MORPH\" param=\"\" />\n");
|
---|
[133] | 344 | configFile.append(" <pointwiseselector name=\"CLIFF\" param=\"0.40\" />");
|
---|
[59] | 345 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 346 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[59] | 347 |
|
---|
| 348 | postamble(configFile);
|
---|
| 349 | return configFile.toString();
|
---|
| 350 | }
|
---|
| 351 |
|
---|
[133] | 352 | public static String Herbold13(Dataset dataset) {
|
---|
[59] | 353 | StringBuilder configFile = new StringBuilder();
|
---|
| 354 | preamble(configFile);
|
---|
| 355 | dataset(configFile, dataset);
|
---|
| 356 | trainers(configFile);
|
---|
| 357 |
|
---|
[133] | 358 | int numNeighbors;
|
---|
| 359 | switch (dataset)
|
---|
| 360 | {
|
---|
| 361 | case AEEEM:
|
---|
| 362 | numNeighbors = 2;
|
---|
| 363 | break;
|
---|
| 364 | case MDP:
|
---|
| 365 | numNeighbors = 5;
|
---|
| 366 | break;
|
---|
| 367 | case JURECZKO:
|
---|
| 368 | numNeighbors = 30;
|
---|
| 369 | break;
|
---|
| 370 | case FILTERJURECZKO:
|
---|
| 371 | numNeighbors = 20;
|
---|
| 372 | break;
|
---|
| 373 | case RELINK:
|
---|
| 374 | numNeighbors = 1;
|
---|
| 375 | break;
|
---|
| 376 | case NETGENE:
|
---|
| 377 | numNeighbors = 1;
|
---|
| 378 | break;
|
---|
| 379 | case SELECTEDJURECZKO:
|
---|
| 380 | numNeighbors = 4;
|
---|
| 381 | break;
|
---|
| 382 | default:
|
---|
| 383 | numNeighbors = 10;
|
---|
| 384 | break;
|
---|
| 385 | }
|
---|
| 386 |
|
---|
[59] | 387 | configFile.append(" <setwisepreprocessor name=\"Normalization\" param=\"\" />\n");
|
---|
[133] | 388 | configFile.append(" <setwiseselector name=\"SetWiseKNNSelection\" param=\""+ numNeighbors +"\" />\n");
|
---|
[59] | 389 | configFile.append(" <postprocessor name=\"BiasedWeights\" param=\"0.5\" />\n");
|
---|
| 390 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 391 |
|
---|
| 392 | postamble(configFile);
|
---|
| 393 | return configFile.toString();
|
---|
| 394 | }
|
---|
| 395 |
|
---|
[133] | 396 | public static String ZHe13(Dataset dataset) {
|
---|
[59] | 397 | StringBuilder configFile = new StringBuilder();
|
---|
| 398 | preamble(configFile);
|
---|
| 399 | dataset(configFile, dataset);
|
---|
| 400 | trainersBagging(configFile);
|
---|
| 401 |
|
---|
[133] | 402 | int numNeighbors;
|
---|
| 403 | switch (dataset)
|
---|
| 404 | {
|
---|
| 405 | case AEEEM:
|
---|
| 406 | numNeighbors = 1;
|
---|
| 407 | break;
|
---|
| 408 | case MDP:
|
---|
| 409 | numNeighbors = 4;
|
---|
| 410 | break;
|
---|
| 411 | case JURECZKO:
|
---|
| 412 | numNeighbors = 16;
|
---|
| 413 | break;
|
---|
| 414 | case FILTERJURECZKO:
|
---|
| 415 | numNeighbors = 13;
|
---|
| 416 | break;
|
---|
| 417 | case RELINK:
|
---|
| 418 | numNeighbors = 1;
|
---|
| 419 | break;
|
---|
| 420 | case NETGENE:
|
---|
| 421 | numNeighbors = 1;
|
---|
| 422 | break;
|
---|
| 423 | case SELECTEDJURECZKO:
|
---|
| 424 | numNeighbors = 4;
|
---|
| 425 | break;
|
---|
| 426 | default:
|
---|
| 427 | numNeighbors = 10;
|
---|
| 428 | break;
|
---|
| 429 | }
|
---|
| 430 |
|
---|
[59] | 431 | configFile.append(" <setwisepreprocessor name=\"Normalization\" param=\"\" />\n");
|
---|
[133] | 432 | configFile.append(" <setwiseselector name=\"SeparatabilitySelection\" param=\"" + numNeighbors + "\" />\n");
|
---|
[59] | 433 | configFile.append(" <setwisepostprocessor name=\"Undersampling\" param=\"\" />\n");
|
---|
| 434 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 435 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[59] | 436 |
|
---|
| 437 | postamble(configFile);
|
---|
| 438 | return configFile.toString();
|
---|
| 439 | }
|
---|
| 440 |
|
---|
[133] | 441 | public static String Nam13(Dataset dataset) {
|
---|
[59] | 442 | StringBuilder configFile = new StringBuilder();
|
---|
| 443 | preamble(configFile);
|
---|
| 444 | dataset(configFile, dataset);
|
---|
| 445 | trainers(configFile);
|
---|
| 446 |
|
---|
| 447 | configFile.append(" <preprocessor name=\"TCAPlusNormalization\" param=\"\" />\n");
|
---|
| 448 | configFile.append(" <postprocessor name=\"TransferComponentAnalysis\" param=\"\" />\n");
|
---|
| 449 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 450 |
|
---|
| 451 | postamble(configFile);
|
---|
| 452 | return configFile.toString();
|
---|
| 453 | }
|
---|
| 454 |
|
---|
[133] | 455 | public static String Panichella14(Dataset dataset) {
|
---|
[59] | 456 | StringBuilder configFile = new StringBuilder();
|
---|
| 457 | preamble(configFile);
|
---|
| 458 | dataset(configFile, dataset);
|
---|
| 459 |
|
---|
[133] | 460 | configFile.append(" <trainer name=\"WekaTraining\" param=\"CODEP-LR de.ugoe.cs.cpdp.wekaclassifier.LogisticCODEP\" />\n");
|
---|
| 461 | configFile.append(" <trainer name=\"WekaTraining\" param=\"CODEP-BN de.ugoe.cs.cpdp.wekaclassifier.BayesNetCODEP\" />\n");
|
---|
[59] | 462 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 463 |
|
---|
| 464 | postamble(configFile);
|
---|
| 465 | return configFile.toString();
|
---|
| 466 | }
|
---|
| 467 |
|
---|
[133] | 468 | public static String Ryu14(Dataset dataset) {
|
---|
[80] | 469 | StringBuilder configFile = new StringBuilder();
|
---|
| 470 | preamble(configFile);
|
---|
| 471 | dataset(configFile, dataset);
|
---|
| 472 |
|
---|
| 473 | configFile.append(" <preprocessor name=\"ZScoreNormalization\" param=\"\" />\n");
|
---|
| 474 | configFile.append(" <testawaretrainer name=\"WekaTestAwareTraining\" param=\"VCBSVM de.ugoe.cs.cpdp.wekaclassifier.VCBSVM -L 0.1 -B 10\" />\n");
|
---|
| 475 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
[133] | 476 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
[80] | 477 |
|
---|
| 478 | postamble(configFile);
|
---|
| 479 | return configFile.toString();
|
---|
| 480 | }
|
---|
[59] | 481 |
|
---|
[133] | 482 | public static String PHe15(Dataset dataset) {
|
---|
[59] | 483 | StringBuilder configFile = new StringBuilder();
|
---|
| 484 | preamble(configFile);
|
---|
| 485 | dataset(configFile, dataset);
|
---|
| 486 | trainers(configFile);
|
---|
| 487 |
|
---|
| 488 | configFile.append(" <setwisepreprocessor name=\"LogarithmTransform\" param=\"\" />\n");
|
---|
| 489 | configFile.append(" <setwisepreprocessor name=\"TopMetricFilter\" param=\"\" />\n");
|
---|
| 490 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 491 |
|
---|
| 492 | postamble(configFile);
|
---|
| 493 | return configFile.toString();
|
---|
| 494 | }
|
---|
| 495 |
|
---|
[133] | 496 | public static String Peters15(Dataset dataset) {
|
---|
| 497 | StringBuilder configFile = new StringBuilder();
|
---|
| 498 | preamble(configFile);
|
---|
| 499 | dataset(configFile, dataset);
|
---|
| 500 | trainers(configFile);
|
---|
| 501 |
|
---|
| 502 | configFile.append(" <setwisepreprocessor name=\"LogarithmTransform\" param=\"\" />\n");
|
---|
| 503 | configFile.append(" <setwiseselector name=\"LACE2\" param=\"0.4\" />\n");
|
---|
| 504 | configFile.append(" <pointwiseselector name=\"TurhanFilter\" param=\"1\" />\n");
|
---|
| 505 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 506 | configFile.append(" <repetitions number=\"10\" />\n");
|
---|
| 507 |
|
---|
| 508 | postamble(configFile);
|
---|
| 509 | return configFile.toString();
|
---|
| 510 | }
|
---|
[59] | 511 |
|
---|
[133] | 512 | public static String Kawata15(Dataset dataset) {
|
---|
[59] | 513 | StringBuilder configFile = new StringBuilder();
|
---|
| 514 | preamble(configFile);
|
---|
| 515 | dataset(configFile, dataset);
|
---|
| 516 | trainers(configFile);
|
---|
| 517 |
|
---|
| 518 | configFile.append(" <pointwiseselector name=\"DBSCANFilter\" param=\"\" />\n");
|
---|
| 519 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 520 |
|
---|
| 521 | postamble(configFile);
|
---|
| 522 | return configFile.toString();
|
---|
| 523 | }
|
---|
| 524 |
|
---|
[133] | 525 | public static String YZhang15(Dataset dataset) {
|
---|
[59] | 526 | StringBuilder configFile = new StringBuilder();
|
---|
| 527 | preamble(configFile);
|
---|
| 528 | dataset(configFile, dataset);
|
---|
| 529 |
|
---|
[133] | 530 | configFile.append(" <trainer name=\"WekaTraining\" param=\"AVGVOTE weka.classifiers.meta.Vote -S 1 -B "weka.classifiers.trees.ADTree" -B "de.ugoe.cs.cpdp.wekaclassifier.DecisionTableWrapper" -B "de.ugoe.cs.cpdp.wekaclassifier.BayesNetWrapper" -B "weka.classifiers.functions.MultilayerPerceptron" -B "weka.classifiers.functions.RBFNetwork" -R AVG\" />\n");
|
---|
| 531 | configFile.append(" <trainer name=\"WekaTraining\" param=\"MAXVOTE weka.classifiers.meta.Vote -S 1 -B "weka.classifiers.trees.ADTree" -B "de.ugoe.cs.cpdp.wekaclassifier.DecisionTableWrapper" -B "de.ugoe.cs.cpdp.wekaclassifier.BayesNetWrapper" -B "weka.classifiers.functions.MultilayerPerceptron" -B "weka.classifiers.functions.RBFNetwork" -R MAX\" />\n");
|
---|
| 532 | configFile.append(" <trainer name=\"WekaTraining\" param=\"BAG-DT weka.classifiers.meta.Bagging -P 100 -S 1 -I 10 -W weka.classifiers.trees.J48\" />\n");
|
---|
| 533 | configFile.append(" <trainer name=\"WekaTraining\" param=\"BAG-NB weka.classifiers.meta.Bagging -P 100 -S 1 -I 10 -W weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
| 534 | configFile.append(" <trainer name=\"WekaTraining\" param=\"BOOST-DT weka.classifiers.meta.AdaBoostM1 -P 100 -S 1 -I 10 -W weka.classifiers.trees.J48\" />\n");
|
---|
| 535 | configFile.append(" <trainer name=\"WekaTraining\" param=\"BOOST-NB weka.classifiers.meta.AdaBoostM1 -P 100 -S 1 -I 10 -W weka.classifiers.bayes.NaiveBayes\" />\n");
|
---|
[59] | 536 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 537 |
|
---|
| 538 | postamble(configFile);
|
---|
| 539 | return configFile.toString();
|
---|
| 540 | }
|
---|
| 541 |
|
---|
[133] | 542 | public static String Amasaki15(Dataset dataset) {
|
---|
[59] | 543 | StringBuilder configFile = new StringBuilder();
|
---|
| 544 | preamble(configFile);
|
---|
| 545 | dataset(configFile, dataset);
|
---|
| 546 | trainers(configFile);
|
---|
| 547 |
|
---|
| 548 | configFile.append(" <preprocessor name=\"LogarithmTransform\" param=\"\" />\n");
|
---|
| 549 | configFile.append(" <preprocessor name=\"SynonymAttributePruning\" param=\"\" />\n");
|
---|
| 550 | configFile.append(" <pointwiseselector name=\"SynonymOutlierRemoval\" param=\"\" />");
|
---|
| 551 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 552 |
|
---|
| 553 | postamble(configFile);
|
---|
| 554 | return configFile.toString();
|
---|
| 555 | }
|
---|
| 556 |
|
---|
[133] | 557 | public static String Ryu15(Dataset dataset) {
|
---|
[59] | 558 | StringBuilder configFile = new StringBuilder();
|
---|
| 559 | preamble(configFile);
|
---|
| 560 | dataset(configFile, dataset);
|
---|
| 561 | trainersLASER(configFile);
|
---|
| 562 |
|
---|
| 563 | configFile.append(" <pointwiseselector name=\"MahalanobisOutlierRemoval\" param=\"\" />\n");
|
---|
| 564 | configFile.append(" <pointwiseselector name=\"NeighborhoodFilter\" param=\"\" />\n");
|
---|
| 565 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 566 |
|
---|
| 567 | postamble(configFile);
|
---|
| 568 | return configFile.toString();
|
---|
| 569 | }
|
---|
| 570 |
|
---|
[133] | 571 | public static String Nam15(Dataset dataset) {
|
---|
[59] | 572 | StringBuilder configFile = new StringBuilder();
|
---|
| 573 | preamble(configFile);
|
---|
| 574 | dataset(configFile, dataset);
|
---|
| 575 | trainers(configFile);
|
---|
| 576 |
|
---|
| 577 | configFile.append(" <preprocessor name=\"CLAMIProcessor\" param=\"\" />\n");
|
---|
| 578 | configFile.append(" <eval name=\"NormalWekaEvaluation\" param=\"\" />\n");
|
---|
| 579 |
|
---|
| 580 | postamble(configFile);
|
---|
| 581 | return configFile.toString();
|
---|
| 582 | }
|
---|
| 583 | }
|
---|