- Timestamp:
- 04/29/16 14:29:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/ExperimentConfiguration.java
r45 r65 42 42 import de.ugoe.cs.cpdp.training.ISetWiseTestdataAwareTrainingStrategy; 43 43 import de.ugoe.cs.cpdp.training.ISetWiseTrainingStrategy; 44 import de.ugoe.cs.cpdp.training.ITestAwareTrainingStrategy; 44 45 import de.ugoe.cs.cpdp.training.ITrainingStrategy; 45 46 import de.ugoe.cs.cpdp.versions.IVersionFilter; … … 139 140 */ 140 141 private List<ITrainingStrategy> trainers; 142 143 /** 144 * normal trainers, i.e., trainers that require the selected training data in a single data set 145 */ 146 private List<ITestAwareTrainingStrategy> testAwareTrainers; 141 147 142 148 /** … … 376 382 return trainers; 377 383 } 384 385 /** 386 * returns the test aware training algorithms 387 * 388 * @return normal training algorithms 389 */ 390 public List<ITestAwareTrainingStrategy> getTestAwareTrainers() { 391 return testAwareTrainers; 392 } 378 393 379 394 /** … … 524 539 trainer.setParameter(attributes.getValue("param")); 525 540 trainers.add(trainer); 541 } 542 else if (qName.equals("testawaretrainer")) { 543 final ITestAwareTrainingStrategy trainer = 544 (ITestAwareTrainingStrategy) Class.forName("de.ugoe.cs.cpdp.training." + 545 attributes.getValue("name")) 546 .newInstance(); 547 trainer.setParameter(attributes.getValue("param")); 548 testAwareTrainers.add(trainer); 526 549 } 527 550 else if (qName.equals("eval")) {
Note: See TracChangeset
for help on using the changeset viewer.