- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaTestAwareTraining.java
r99 r135 22 22 import weka.core.Instances; 23 23 24 // TODO comment 24 /** 25 * <p> 26 * Trainer that allows classifiers access to the training data. Classifiers need to make sure that 27 * they do not use the classification. 28 * </p> 29 * 30 * @author Steffen Herbold 31 */ 25 32 public class WekaTestAwareTraining extends WekaBaseTraining implements ITestAwareTrainingStrategy { 26 33 34 /* 35 * (non-Javadoc) 36 * 37 * @see de.ugoe.cs.cpdp.training.ITestAwareTrainingStrategy#apply(weka.core.Instances, 38 * weka.core.Instances) 39 */ 27 40 @Override 28 41 public void apply(Instances testdata, Instances traindata) { 29 42 classifier = setupClassifier(); 30 if ( !(classifier instanceof ITestAwareClassifier)) {43 if (!(classifier instanceof ITestAwareClassifier)) { 31 44 throw new RuntimeException("classifier must implement the ITestAwareClassifier interface in order to be used as TestAwareTrainingStrategy"); 32 45 }
Note: See TracChangeset
for help on using the changeset viewer.