Changeset 6 for trunk/CrossPare/src


Ignore:
Timestamp:
08/06/14 11:12:25 (10 years ago)
Author:
sherbold
Message:
  • improved Javadocs and exception handling
  • added getName() to ITrainingStrategy
Location:
trunk/CrossPare/src/de/ugoe/cs/cpdp
Files:
4 edited

Legend:

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

    r2 r6  
    121121                                } 
    122122                                for( ISetWiseTrainingStrategy setwiseTrainer : config.getSetWiseTrainers() ) { 
    123                                         Console.traceln(Level.FINE, String.format("[%s] [%02d/%02d] %s: applying setwise trainer %s", config.getExperimentName(), versionCount, testVersionCount, testVersion.getVersion(), setwiseTrainer.getClass().getName())); 
     123                                        Console.traceln(Level.FINE, String.format("[%s] [%02d/%02d] %s: applying setwise trainer %s", config.getExperimentName(), versionCount, testVersionCount, testVersion.getVersion(), setwiseTrainer.getName())); 
    124124                                        setwiseTrainer.apply(traindataSet); 
    125125                                } 
     
    138138                                } 
    139139                                for( ITrainingStrategy trainer : config.getTrainers() ) { 
    140                                         Console.traceln(Level.FINE, String.format("[%s] [%02d/%02d] %s: applying trainer %s", config.getExperimentName(), versionCount, testVersionCount, testVersion.getVersion(), trainer.getClass().getName())); 
     140                                        Console.traceln(Level.FINE, String.format("[%s] [%02d/%02d] %s: applying trainer %s", config.getExperimentName(), versionCount, testVersionCount, testVersion.getVersion(), trainer.getName())); 
    141141                                        trainer.apply(traindata); 
    142142                                } 
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/AbstractWekaEvaluation.java

    r5 r6  
    2121 * <ul> 
    2222 *  <li>Success with recall>0.7, precision>0.5</li> 
    23  *  <li>Success with recall>0.7, precision>0.5</li> 
     23 *  <li>Success with recall>0.7, precision>0.7</li> 
    2424 *  <li>Success with gscore>0.75</li> 
    2525 *  <li>Success with gscore>0.6</li> 
     
    3737 *  <li>true negatives</li> 
    3838 *  <li>false negatives</li> 
     39 *  <li>training error</li> 
     40 *  <li>training recall</li> 
     41 *  <li>training precision</li> 
     42 *  <li>training success with recall>0.7 and precision>0.5 
    3943 * </ul>  
    4044 * @author Steffen Herbold 
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/loader/ARFFLoader.java

    r4 r6  
    2929                        reader.close(); 
    3030                } catch (IOException e) { 
    31                         // TODO Auto-generated catch block 
    32                         throw new RuntimeException(e); 
     31                        throw new RuntimeException("error reading file: " + file.getName(), e); 
    3332                } 
    3433 
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/training/ITrainingStrategy.java

    r2 r6  
    66         
    77        void apply(Instances traindata); 
     8         
     9        String getName(); 
    810} 
Note: See TracChangeset for help on using the changeset viewer.