Changeset 98 for trunk/CrossPare/src/de/ugoe/cs/cpdp/execution
- Timestamp:
- 05/13/16 09:18:15 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/AbstractCrossProjectExperiment.java
r86 r98 148 148 int versionCount = 1; 149 149 int testVersionCount = 0; 150 int numTrainers = 0; 150 151 151 152 for (SoftwareVersion testVersion : versions) { … … 154 155 } 155 156 } 157 158 numTrainers += config.getSetWiseTrainers().size(); 159 numTrainers += config.getSetWiseTestdataAwareTrainers().size(); 160 numTrainers += config.getTrainers().size(); 161 numTrainers += config.getTestAwareTrainers().size(); 156 162 157 163 // sort versions … … 164 170 config.getExperimentName(), versionCount, 165 171 testVersionCount, testVersion.getVersion())); 166 if (resultsAvailable(testVersion)) { 172 int numResultsAvailable = resultsAvailable(testVersion); 173 if (numResultsAvailable >= numTrainers*config.getRepetitions()) { 167 174 Console.traceln(Level.INFO, 168 175 String.format( … … 339 346 } 340 347 341 private booleanresultsAvailable(SoftwareVersion version) {348 private int resultsAvailable(SoftwareVersion version) { 342 349 if (config.getResultStorages().isEmpty()) { 343 return false;344 } 345 boolean available = true;350 return 0; 351 } 352 int available = Integer.MAX_VALUE; 346 353 for (IResultStorage storage : config.getResultStorages()) { 347 available &= storage.containsResult(config.getExperimentName(), version.getVersion()); 354 int curAvailable = storage.containsResult(config.getExperimentName(), version.getVersion()); 355 if( curAvailable<available ) { 356 available = curAvailable; 357 } 348 358 } 349 359 return available;
Note: See TracChangeset
for help on using the changeset viewer.