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/WekaBaggingTraining.java

    r86 r99  
    1515package de.ugoe.cs.cpdp.training; 
    1616 
    17 import java.io.PrintStream; 
    1817import java.util.HashSet; 
    1918import java.util.LinkedList; 
     
    2221 
    2322import org.apache.commons.collections4.list.SetUniqueList; 
    24 import org.apache.commons.io.output.NullOutputStream; 
    2523 
    2624import weka.classifiers.AbstractClassifier; 
     
    6058    @Override 
    6159    public void apply(SetUniqueList<Instances> traindataSet) { 
    62         PrintStream errStr = System.err; 
    63         System.setErr(new PrintStream(new NullOutputStream())); 
    6460        try { 
    6561            classifier.buildClassifier(traindataSet); 
     
    6763        catch (Exception e) { 
    6864            throw new RuntimeException(e); 
    69         } 
    70         finally { 
    71             System.setErr(errStr); 
    7265        } 
    7366    } 
Note: See TracChangeset for help on using the changeset viewer.