szte.csd.indicatorsel
Class TresholdOptimizer

java.lang.Object
  extended by szte.csd.indicatorsel.TresholdOptimizer

public class TresholdOptimizer
extends java.lang.Object

Each indicator selection method has a paramter T. TresholdOptimizer finds the best T value at the training set of a given task.


Constructor Summary
TresholdOptimizer(ContentShiftDetector l)
           
 
Method Summary
static double crossvalidate(java.lang.String task, java.lang.String is)
          Determines the best T threshold on the given task's training set for the indicator selection method is.
static void crossvalidateAll()
          Determines the best T threshold on all task's training set for each indicator selection method (it takes several hours).
static double getThreshold(java.lang.String indsel, java.lang.String task)
          Threshold values obtained by cross-validation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TresholdOptimizer

public TresholdOptimizer(ContentShiftDetector l)
Method Detail

getThreshold

public static double getThreshold(java.lang.String indsel,
                                  java.lang.String task)
Threshold values obtained by cross-validation


crossvalidateAll

public static void crossvalidateAll()
                             throws java.lang.Exception
Determines the best T threshold on all task's training set for each indicator selection method (it takes several hours). Results are printed to out.

Throws:
java.lang.Exception

crossvalidate

public static double crossvalidate(java.lang.String task,
                                   java.lang.String is)
                            throws java.lang.Exception
Determines the best T threshold on the given task's training set for the indicator selection method is. Results are printed to out as well.

Throws:
java.lang.Exception