- Timestamp:
- 10/31/14 15:54:08 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaLocalTraining2.java
r19 r20 84 84 private HashMap<Integer, ArrayList<Double[][]>> csize; 85 85 86 /* debug vars */ 87 @SuppressWarnings("unused") 86 88 private boolean show_biggest = true; 87 89 90 @SuppressWarnings("unused") 88 91 private int CFOUND = 0; 92 @SuppressWarnings("unused") 89 93 private int CNOTFOUND = 0; 90 94 … … 260 264 //} 261 265 262 // now it can happen that we do nt find a cluster because we deleted it previously (too few instances)266 // now it can happen that we do not find a cluster because we deleted it previously (too few instances) 263 267 // or we get bigger distance measures from weka so that we are completely outside of our clusters. 264 268 // in these cases we just find the nearest cluster to our instance and use it for classification. … … 280 284 } 281 285 282 // here we have the cluster where an instance has the minimum distance between itself the286 // here we have the cluster where an instance has the minimum distance between itself and the 283 287 // instance we want to classify 284 288 // if we still have not found a cluster we exit because something is really wrong … … 436 440 */ 437 441 438 // train one classifier per cluster, we get the cluster number from the traindata442 // train one classifier per cluster, we get the cluster number from the traindata 439 443 int cnumber; 440 444 Iterator<Integer> clusternumber = ctraindata.keySet().iterator(); … … 444 448 while ( clusternumber.hasNext() ) { 445 449 cnumber = clusternumber.next(); 446 cclassifier.put(cnumber,setupClassifier()); // das hier ist der eigentliche trainer450 cclassifier.put(cnumber,setupClassifier()); // this is the classifier used for the cluster 447 451 cclassifier.get(cnumber).buildClassifier(ctraindata.get(cnumber)); 448 452 //Console.traceln(Level.INFO, String.format("classifier in cluster "+cnumber));
Note: See TracChangeset
for help on using the changeset viewer.