- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/ClassifierCreationExperiment.java
r132 r135 107 107 108 108 for (IProcessesingStrategy processor : config.getPreProcessors()) { 109 Console.traceln(Level.FINE, String 110 .format("[%s] [%02d/%02d] %s: applying preprocessor %s", 111 config.getExperimentName(), versionCount, versions.size(), 112 testVersion.getProject(), processor.getClass().getName())); 109 Console.traceln(Level.FINE, 110 String.format("[%s] [%02d/%02d] %s: applying preprocessor %s", 111 config.getExperimentName(), versionCount, 112 versions.size(), testVersion.getProject(), 113 processor.getClass().getName())); 113 114 processor.apply(testdata, traindata); 114 115 } 115 116 116 117 for (IPointWiseDataselectionStrategy dataselector : config.getPointWiseSelectors()) { 117 Console.traceln(Level.FINE, String 118 .format("[%s] [%02d/%02d] %s: applying pointwise selection %s", 119 config.getExperimentName(), versionCount, versions.size(), 120 testVersion.getProject(), dataselector.getClass().getName())); 118 Console 119 .traceln(Level.FINE, 120 String.format("[%s] [%02d/%02d] %s: applying pointwise selection %s", 121 config.getExperimentName(), versionCount, 122 versions.size(), testVersion.getProject(), 123 dataselector.getClass().getName())); 121 124 traindata = dataselector.apply(testdata, traindata); 122 125 } 123 126 124 127 for (IProcessesingStrategy processor : config.getPostProcessors()) { 125 Console.traceln(Level.FINE, String 126 .format("[%s] [%02d/%02d] %s: applying setwise postprocessor %s", 127 config.getExperimentName(), versionCount, versions.size(), 128 testVersion.getProject(), processor.getClass().getName())); 128 Console 129 .traceln(Level.FINE, 130 String.format("[%s] [%02d/%02d] %s: applying setwise postprocessor %s", 131 config.getExperimentName(), versionCount, 132 versions.size(), testVersion.getProject(), 133 processor.getClass().getName())); 129 134 processor.apply(testdata, traindata); 130 135 } … … 148 153 try { 149 154 weka.core.SerializationHelper.write(resultsDir.getAbsolutePath() + "/" + 150 trainer.getName() + "-" + 151 testVersion.getProject(), 155 trainer.getName() + "-" + testVersion.getProject(), 152 156 trainerToSave.getClassifier()); 153 157 } … … 160 164 161 165 for (IEvaluationStrategy evaluator : config.getEvaluators()) { 162 Console.traceln(Level.FINE, String 163 .format("[%s] [%02d/%02d] %s: applying evaluator %s", 164 config.getExperimentName(), versionCount, versions.size(), 165 testVersion.getProject(), evaluator.getClass().getName())); 166 Console.traceln(Level.FINE, 167 String.format("[%s] [%02d/%02d] %s: applying evaluator %s", 168 config.getExperimentName(), versionCount, 169 versions.size(), testVersion.getProject(), 170 evaluator.getClass().getName())); 166 171 167 172 if (writeHeader) { … … 169 174 config.getExperimentName() + ".csv"); 170 175 } 171 evaluator.apply(testdata, traindata, allTrainers, efforts, writeHeader, config.getResultStorages()); 176 evaluator.apply(testdata, traindata, allTrainers, efforts, writeHeader, 177 config.getResultStorages()); 172 178 writeHeader = false; 173 179 } … … 175 181 versionCount++; 176 182 177 Console.traceln(Level.INFO, String.format("[%s] [%02d/%02d] %s: finished", 178 config.getExperimentName(), versionCount, 179 versions.size(), testVersion.getProject())); 183 Console.traceln(Level.INFO, 184 String.format("[%s] [%02d/%02d] %s: finished", 185 config.getExperimentName(), versionCount, versions.size(), 186 testVersion.getProject())); 180 187 181 188 }
Note: See TracChangeset
for help on using the changeset viewer.