Changeset 69 for trunk/CrossPare/src/de/ugoe/cs/cpdp/execution
- Timestamp:
- 05/03/16 15:17:36 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/AbstractCrossProjectExperiment.java
r68 r69 29 29 import de.ugoe.cs.cpdp.dataselection.ISetWiseDataselectionStrategy; 30 30 import de.ugoe.cs.cpdp.eval.IEvaluationStrategy; 31 import de.ugoe.cs.cpdp.eval.IResultStorage; 31 32 import de.ugoe.cs.cpdp.loader.IVersionLoader; 32 33 import de.ugoe.cs.cpdp.training.ISetWiseTestdataAwareTrainingStrategy; … … 163 164 config.getExperimentName(), versionCount, 164 165 testVersionCount, testVersion.getVersion())); 166 if (resultsAvailable(testVersion)) { 167 Console.traceln(Level.INFO, 168 String.format( 169 "[%s] [%02d/%02d] %s: results already available; skipped", 170 config.getExperimentName(), versionCount, 171 testVersionCount, testVersion.getVersion())); 172 versionCount++; 173 continue; 174 } 165 175 166 176 // Setup testdata and training data … … 299 309 config.getExperimentName() + ".csv"); 300 310 } 301 evaluator.apply(testdata, traindata, allTrainers, writeHeader, config.getResultStorages()); 311 evaluator.apply(testdata, traindata, allTrainers, writeHeader, 312 config.getResultStorages()); 302 313 writeHeader = false; 303 314 } … … 327 338 return result; 328 339 } 340 341 private boolean resultsAvailable(SoftwareVersion version) { 342 if (config.getResultStorages().isEmpty()) { 343 return false; 344 } 345 boolean available = true; 346 for (IResultStorage storage : config.getResultStorages()) { 347 available &= storage.containsResult(config.getExperimentName(), version.getVersion()); 348 } 349 return available; 350 } 329 351 }
Note: See TracChangeset
for help on using the changeset viewer.