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

    r86 r99  
    1515package de.ugoe.cs.cpdp.training; 
    1616 
    17 import java.io.PrintStream; 
    1817import java.util.ArrayList; 
    1918import java.util.HashMap; 
     
    2322import java.util.Set; 
    2423import java.util.logging.Level; 
    25  
    26 import org.apache.commons.io.output.NullOutputStream; 
    2724 
    2825import de.ugoe.cs.cpdp.training.QuadTree; 
     
    6663    @Override 
    6764    public void apply(Instances traindata) { 
    68         PrintStream errStr = System.err; 
    69         System.setErr(new PrintStream(new NullOutputStream())); 
    7065        try { 
    7166            classifier.buildClassifier(traindata); 
     
    7368        catch (Exception e) { 
    7469            throw new RuntimeException(e); 
    75         } 
    76         finally { 
    77             System.setErr(errStr); 
    7870        } 
    7971    } 
Note: See TracChangeset for help on using the changeset viewer.