Changeset 33 for trunk/CrossPare/src/de/ugoe/cs/cpdp/execution
- Timestamp:
- 05/05/15 17:58:18 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/execution/ClassifierCreationExperiment.java
r32 r33 108 108 109 109 110 // Get bug/non bug (TODO)111 int traindataBug = 0;112 int traindataNonBug = 0;113 114 for(int i=0; i<traindata.numInstances(); i++) {115 double wekaInstanceValue = traindata.instance(i).classValue();116 117 if(wekaInstanceValue == 1.0) {118 traindataBug++;119 } else {120 traindataNonBug++;121 }122 }123 124 System.out.println("Traindata Bug: "+traindataBug);125 System.out.println("Traindata Non Bug: "+traindataNonBug);126 127 int testdataBug = 0;128 int testdataNonBug = 0;129 130 for(int i=0; i<testdata.numInstances(); i++) {131 double wekaInstanceValue = testdata.instance(i).classValue();132 133 if(wekaInstanceValue == 1.0) {134 testdataBug++;135 } else {136 testdataNonBug++;137 }138 }139 140 System.out.println("Testdata Bug: "+testdataBug);141 System.out.println("Testdata Non Bug: "+testdataNonBug);142 143 144 110 // Trainerlist for evaluation later on 145 111 List<ITrainer> allTrainers = new LinkedList<>();
Note: See TracChangeset
for help on using the changeset viewer.