- Timestamp:
- 08/25/14 12:52:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataprocessing/Undersampling.java
r2 r10 7 7 import weka.filters.supervised.instance.Resample; 8 8 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 */ 10 14 public class Undersampling implements IProcessesingStrategy, 11 15 ISetWiseProcessingStrategy { … … 21 25 } 22 26 23 27 /* 28 * (non-Javadoc) 29 * @see de.ugoe.cs.cpdp.dataprocessing.ISetWiseProcessingStrategy#apply(weka.core.Instances, org.apache.commons.collections4.list.SetUniqueList) 30 */ 24 31 @Override 25 32 public void apply(Instances testdata, SetUniqueList<Instances> traindataSet) { … … 29 36 } 30 37 38 /* 39 * (non-Javadoc) 40 * @see de.ugoe.cs.cpdp.dataprocessing.IProcessesingStrategy#apply(weka.core.Instances, weka.core.Instances) 41 */ 31 42 @Override 32 43 public void apply(Instances testdata, Instances traindata) {
Note: See TracChangeset
for help on using the changeset viewer.