- Timestamp:
- 11/17/15 20:42:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/ExperimentConfiguration.java
r41 r44 1 // Copyright 2015 Georg-August-Universit ät Göttingen, Germany1 // Copyright 2015 Georg-August-Universit�t G�ttingen, Germany 2 2 // 3 3 // Licensed under the Apache License, Version 2.0 (the "License"); … … 40 40 import de.ugoe.cs.cpdp.eval.IEvaluationStrategy; 41 41 import de.ugoe.cs.cpdp.loader.IVersionLoader; 42 import de.ugoe.cs.cpdp.training.ISetWiseTestdataAwareTrainingStrategy; 42 43 import de.ugoe.cs.cpdp.training.ISetWiseTrainingStrategy; 43 44 import de.ugoe.cs.cpdp.training.ITrainingStrategy; … … 114 115 115 116 /** 117 * setwise testdata aware trainers, i.e., trainers that require the selected training data to be separate from 118 * each other and the current testdata 119 */ 120 private List<ISetWiseTestdataAwareTrainingStrategy> setwiseTestdataAwareTrainers; 121 122 /** 116 123 * data processors that are applied before the pointwise data selection 117 124 */ … … 178 185 setwisepostprocessors = new LinkedList<>(); 179 186 setwiseTrainers = new LinkedList<>(); 187 setwiseTestdataAwareTrainers = new LinkedList<>(); 180 188 preprocessors = new LinkedList<>(); 181 189 pointwiseselectors = new LinkedList<>(); … … 324 332 } 325 333 334 /** 335 * returns the setwise training algorithms 336 * 337 * @return setwise training algorithms 338 */ 339 public List<ISetWiseTestdataAwareTrainingStrategy> getSetWiseTestdataAwareTrainers() { 340 return setwiseTestdataAwareTrainers; 341 } 342 326 343 /** 327 344 * returns the processors applied before the pointwise data selection … … 465 482 trainer.setParameter(attributes.getValue("param")); 466 483 setwiseTrainers.add(trainer); 484 } 485 else if (qName.equals("setwisetestdataawaretrainer")) { 486 final ISetWiseTestdataAwareTrainingStrategy trainer = 487 (ISetWiseTestdataAwareTrainingStrategy) Class.forName("de.ugoe.cs.cpdp.training." + 488 attributes.getValue("name")) 489 .newInstance(); 490 trainer.setParameter(attributes.getValue("param")); 491 setwiseTestdataAwareTrainers.add(trainer); 467 492 } 468 493 else if (qName.equals("preprocessor")) { … … 566 591 setwisepostprocessors.addAll(other.setwisepostprocessors); 567 592 setwiseTrainers.addAll(other.setwiseTrainers); 593 setwiseTestdataAwareTrainers.addAll(other.setwiseTestdataAwareTrainers); 568 594 preprocessors.addAll(other.preprocessors); 569 595 pointwiseselectors.addAll(other.pointwiseselectors); … … 609 635 StringTools.ENDLINE); 610 636 builder.append("Setwise trainers: " + setwiseTrainers.toString() + StringTools.ENDLINE); 637 builder.append("Setwise Testdata Aware trainers: " + setwiseTestdataAwareTrainers.toString() + StringTools.ENDLINE); 611 638 builder 612 639 .append("Pointwise preprocessors: " + preprocessors.toString() + StringTools.ENDLINE);
Note: See TracChangeset
for help on using the changeset viewer.