- 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/WekaLocalEMTraining.java
r86 r99 15 15 package de.ugoe.cs.cpdp.training; 16 16 17 import java.io.PrintStream;18 17 import java.util.HashMap; 19 18 import java.util.HashSet; … … 22 21 import java.util.Set; 23 22 import java.util.logging.Level; 24 25 import org.apache.commons.io.output.NullOutputStream;26 23 27 24 import de.ugoe.cs.util.console.Console; … … 59 56 @Override 60 57 public void apply(Instances traindata) { 61 PrintStream errStr = System.err;62 System.setErr(new PrintStream(new NullOutputStream()));63 58 try { 64 59 classifier.buildClassifier(traindata); … … 66 61 catch (Exception e) { 67 62 throw new RuntimeException(e); 68 }69 finally {70 System.setErr(errStr);71 63 } 72 64 }
Note: See TracChangeset
for help on using the changeset viewer.