Changeset 74 for trunk/CrossPare/src/de/ugoe/cs/cpdp/training
- Timestamp:
- 05/04/16 11:55:23 (9 years ago)
- Location:
- trunk/CrossPare/src/de/ugoe/cs/cpdp/training
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaLASERTraining.java
r64 r74 110 110 boolean allEqual = true; 111 111 for( Integer index : closestToTrainingInstance ) { 112 if( label == Double.NaN) {112 if( Double.isNaN(label) ) { 113 113 label = traindata.get(closestToTrainingInstance.get(index)).classValue(); 114 114 } … … 129 129 boolean allEqual = true; 130 130 for( Integer index : closestInstances ) { 131 if( label == Double.NaN) {131 if( Double.isNaN(label) ) { 132 132 label = traindata.get(closestInstances.get(index)).classValue(); 133 133 } -
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaLocalFQTraining.java
r41 r74 399 399 400 400 double[][] X = FMAP.getX(); 401 distmat = new double[0][0];402 System.gc();403 401 404 402 // quadtree payload generation -
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaTraining.java
r42 r74 48 48 public void apply(Instances traindata) { 49 49 classifier = setupClassifier(); 50 if( classifier==null ) { 51 Console.printerr("classifier of WekaTraining is null"); 52 throw new RuntimeException("classifier of WekaTraining is null"); 53 } 50 54 PrintStream errStr = System.err; 51 55 System.setErr(new PrintStream(new NullOutputStream()));
Note: See TracChangeset
for help on using the changeset viewer.