- Timestamp:
- 05/13/16 13:16:05 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaBaggingTraining.java
r86 r99 15 15 package de.ugoe.cs.cpdp.training; 16 16 17 import java.io.PrintStream;18 17 import java.util.HashSet; 19 18 import java.util.LinkedList; … … 22 21 23 22 import org.apache.commons.collections4.list.SetUniqueList; 24 import org.apache.commons.io.output.NullOutputStream;25 23 26 24 import weka.classifiers.AbstractClassifier; … … 60 58 @Override 61 59 public void apply(SetUniqueList<Instances> traindataSet) { 62 PrintStream errStr = System.err;63 System.setErr(new PrintStream(new NullOutputStream()));64 60 try { 65 61 classifier.buildClassifier(traindataSet); … … 67 63 catch (Exception e) { 68 64 throw new RuntimeException(e); 69 }70 finally {71 System.setErr(errStr);72 65 } 73 66 }
Note: See TracChangeset
for help on using the changeset viewer.