SVM
Class BenchmarkTest

java.lang.Object
  extended by SVM.BenchmarkTest

public class BenchmarkTest
extends java.lang.Object

Provides either home-brewed crossfold validation or one-out validation

Author:
davidc

Field Summary
static boolean verbose
           
 
Constructor Summary
BenchmarkTest()
           
 
Method Summary
static void crossFoldValidation(int folds, java.util.List<KnownDoc> knowns, boolean useBoost, int boostFactor)
           
static double findScore(double[] precisions, double[] recalls, int idx, java.util.List<KnownDoc> testSet, java.util.List<KnownDoc> trainSet, java.io.PrintStream outFile, boolean useBoost, int boostFactor)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public static boolean verbose
Constructor Detail

BenchmarkTest

public BenchmarkTest()
Method Detail

crossFoldValidation

public static void crossFoldValidation(int folds,
                                       java.util.List<KnownDoc> knowns,
                                       boolean useBoost,
                                       int boostFactor)
                                throws java.io.IOException
Parameters:
folds - how many groups to split the documents into
knowns -
useBoost -
boostFactor -
Throws:
java.io.IOException

findScore

public static double findScore(double[] precisions,
                               double[] recalls,
                               int idx,
                               java.util.List<KnownDoc> testSet,
                               java.util.List<KnownDoc> trainSet,
                               java.io.PrintStream outFile,
                               boolean useBoost,
                               int boostFactor)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.jdom.JDOMException
Parameters:
args -
Throws:
java.io.IOException
org.jdom.JDOMException