- Timestamp:
- 07/18/16 12:26:03 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/loader/RelinkLoader.java
r119 r135 1 1 2 package de.ugoe.cs.cpdp.loader; 2 3 … … 10 11 import weka.core.Instances; 11 12 13 /** 14 * <p> 15 * Loads data from the RELINK data set. 16 * </p> 17 * 18 * @author Steffen Herbold 19 */ 12 20 public class RelinkLoader implements SingleVersionLoader { 13 21 … … 67 75 attrNames.add("SumEssential"); 68 76 attrNames.add("isDefective"); 69 70 for ( int j=tmpData.numAttributes()-1; j>=0 ; j--) {71 if ( !attrNames.contains(tmpData.attribute(j).name())) {77 78 for (int j = tmpData.numAttributes() - 1; j >= 0; j--) { 79 if (!attrNames.contains(tmpData.attribute(j).name())) { 72 80 tmpData.deleteAttributeAt(j); 73 81 } 74 82 } 75 83 76 84 // setting class attribute 77 85 tmpData.setClassIndex(tmpData.numAttributes() - 1);
Note: See TracChangeset
for help on using the changeset viewer.