- 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/AbstractCrossProjectExperiment.java
r132 r135 155 155 } 156 156 } 157 157 158 158 // sort versions 159 159 Collections.sort(versions); … … 342 342 } 343 343 344 /** 345 * <p> 346 * helper function that checks if the results are already in the data store 347 * </p> 348 * 349 * @param version 350 * version for which the results are checked 351 * @return 352 */ 344 353 private int resultsAvailable(SoftwareVersion version) { 345 354 if (config.getResultStorages().isEmpty()) { 346 355 return 0; 347 356 } 348 357 349 358 List<ITrainer> allTrainers = new LinkedList<>(); 350 359 for (ISetWiseTrainingStrategy setwiseTrainer : config.getSetWiseTrainers()) { … … 362 371 allTrainers.add(trainer); 363 372 } 364 373 365 374 int available = Integer.MAX_VALUE; 366 375 for (IResultStorage storage : config.getResultStorages()) { 367 376 String classifierName = ((IWekaCompatibleTrainer) allTrainers.get(0)).getName(); 368 int curAvailable = storage.containsResult(config.getExperimentName(), version.getVersion(), classifierName); 369 if( curAvailable<available ) { 377 int curAvailable = storage.containsResult(config.getExperimentName(), 378 version.getVersion(), classifierName); 379 if (curAvailable < available) { 370 380 available = curAvailable; 371 381 }
Note: See TracChangeset
for help on using the changeset viewer.