Ignore:
Timestamp:
08/25/14 12:52:14 (10 years ago)
Author:
sherbold
Message:
  • added some source code comments
File:
1 edited

Legend:

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

    r2 r10  
    77import weka.filters.supervised.instance.Resample; 
    88 
    9 // TODO comment 
     9/** 
     10 * Implements undersampling, a strategy for handling bias in data. In case there are less positive samples (i.e. defect-prone) samples in the 
     11 * data than negative samples (i.e. non-defect-prone), the non-defect-prone entities are sampled such thatthe number of defect-prone and non-defect-prone instances is the same afterwards.   
     12 * @author Steffen Herbold 
     13 */ 
    1014public class Undersampling implements IProcessesingStrategy, 
    1115                ISetWiseProcessingStrategy { 
     
    2125        } 
    2226 
    23  
     27        /* 
     28         * (non-Javadoc) 
     29         * @see de.ugoe.cs.cpdp.dataprocessing.ISetWiseProcessingStrategy#apply(weka.core.Instances, org.apache.commons.collections4.list.SetUniqueList) 
     30         */ 
    2431        @Override 
    2532        public void apply(Instances testdata, SetUniqueList<Instances> traindataSet) { 
     
    2936        } 
    3037 
     38        /* 
     39         * (non-Javadoc) 
     40         * @see de.ugoe.cs.cpdp.dataprocessing.IProcessesingStrategy#apply(weka.core.Instances, weka.core.Instances) 
     41         */ 
    3142        @Override 
    3243        public void apply(Instances testdata, Instances traindata) { 
Note: See TracChangeset for help on using the changeset viewer.