Changeset 102 for trunk/CrossPare
- Timestamp:
- 05/17/16 13:39:16 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/dataprocessing/TopMetricFilter.java
r86 r102 75 75 private void determineTopKAttributes(Instances testdata, SetUniqueList<Instances> traindataSet) throws Exception { 76 76 Integer[] counts = new Integer[traindataSet.get(0).numAttributes()-1]; 77 IntStream.range(0,counts.length).forEach(val -> counts[val] = 0); 77 78 for( Instances traindata : traindataSet ) { 78 79 J48 decisionTree = new J48(); … … 82 83 if(j!=traindata.classIndex()){ 83 84 if( decisionTree.toString().contains(traindata.attribute(j).name()) ) { 84 if( counts[k]==null ){ 85 counts[k] = 1; 86 } else { 87 counts[k] = counts[k]+1; 88 } 85 counts[k] = counts[k]+1; 89 86 } 90 87 k++;
Note: See TracChangeset
for help on using the changeset viewer.