Ignore:
Timestamp:
11/17/15 20:42:08 (9 years ago)
Author:
atrautsch
Message:

metric matching hinzu

Location:
trunk/CrossPare/src/de/ugoe/cs/cpdp/execution
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/CrossProjectExperiment.java

    r41 r44  
    3131import de.ugoe.cs.cpdp.eval.IEvaluationStrategy; 
    3232import de.ugoe.cs.cpdp.loader.IVersionLoader; 
     33import de.ugoe.cs.cpdp.training.ISetWiseTestdataAwareTrainingStrategy; 
    3334import de.ugoe.cs.cpdp.training.ISetWiseTrainingStrategy; 
    3435import de.ugoe.cs.cpdp.training.ITrainer; 
     
    168169                    setwiseTrainer.apply(traindataSet); 
    169170                } 
     171                for (ISetWiseTestdataAwareTrainingStrategy setwiseTestdataAwareTrainer : config.getSetWiseTestdataAwareTrainers()) { 
     172                    Console.traceln(Level.FINE, String 
     173                        .format("[%s] [%02d/%02d] %s: applying testdata aware setwise trainer %s", 
     174                                config.getExperimentName(), versionCount, testVersionCount, 
     175                                testVersion.getVersion(), setwiseTestdataAwareTrainer.getName())); 
     176                    setwiseTestdataAwareTrainer.apply(traindataSet, testdata); 
     177                } 
    170178                Instances traindata = makeSingleTrainingSet(traindataSet); 
    171179                for (IProcessesingStrategy processor : config.getPreProcessors()) { 
     
    210218                    for (ISetWiseTrainingStrategy setwiseTrainer : config.getSetWiseTrainers()) { 
    211219                        allTrainers.add(setwiseTrainer); 
     220                    } 
     221                    for (ISetWiseTestdataAwareTrainingStrategy setwiseTestdataAwareTrainer : config.getSetWiseTestdataAwareTrainers()) { 
     222                        allTrainers.add(setwiseTestdataAwareTrainer); 
    212223                    } 
    213224                    for (ITrainingStrategy trainer : config.getTrainers()) { 
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/RelaxedCrossProjectExperiment.java

    r41 r44  
    3131import de.ugoe.cs.cpdp.eval.IEvaluationStrategy; 
    3232import de.ugoe.cs.cpdp.loader.IVersionLoader; 
     33import de.ugoe.cs.cpdp.training.ISetWiseTestdataAwareTrainingStrategy; 
    3334import de.ugoe.cs.cpdp.training.ISetWiseTrainingStrategy; 
    3435import de.ugoe.cs.cpdp.training.ITrainer; 
     
    173174                    setwiseTrainer.apply(traindataSet); 
    174175                } 
     176                for (ISetWiseTestdataAwareTrainingStrategy setwiseTestdataAwareTrainer : config.getSetWiseTestdataAwareTrainers()) { 
     177                    Console.traceln(Level.FINE, String 
     178                        .format("[%s] [%02d/%02d] %s: applying testdata aware setwise trainer %s", 
     179                                config.getExperimentName(), versionCount, testVersionCount, 
     180                                testVersion.getVersion(), setwiseTestdataAwareTrainer.getName())); 
     181                    setwiseTestdataAwareTrainer.apply(traindataSet, testdata); 
     182                } 
    175183                Instances traindata = makeSingleTrainingSet(traindataSet); 
    176184                for (IProcessesingStrategy processor : config.getPreProcessors()) { 
Note: See TracChangeset for help on using the changeset viewer.