Ignore:
Timestamp:
05/13/16 13:16:05 (9 years ago)
Author:
sherbold
Message:
  • improved error reporting
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrossPare/src/de/ugoe/cs/cpdp/training/WekaLocalEMTraining.java

    r86 r99  
    1515package de.ugoe.cs.cpdp.training; 
    1616 
    17 import java.io.PrintStream; 
    1817import java.util.HashMap; 
    1918import java.util.HashSet; 
     
    2221import java.util.Set; 
    2322import java.util.logging.Level; 
    24  
    25 import org.apache.commons.io.output.NullOutputStream; 
    2623 
    2724import de.ugoe.cs.util.console.Console; 
     
    5956    @Override 
    6057    public void apply(Instances traindata) { 
    61         PrintStream errStr = System.err; 
    62         System.setErr(new PrintStream(new NullOutputStream())); 
    6358        try { 
    6459            classifier.buildClassifier(traindata); 
     
    6661        catch (Exception e) { 
    6762            throw new RuntimeException(e); 
    68         } 
    69         finally { 
    70             System.setErr(errStr); 
    7163        } 
    7264    } 
Note: See TracChangeset for help on using the changeset viewer.