com.wcohen.ss.expt
Class MatchExpt

java.lang.Object
  extended by com.wcohen.ss.expt.MatchExpt
All Implemented Interfaces:
com.wcohen.util.gui.Visible, java.io.Serializable

public class MatchExpt
extends java.lang.Object
implements java.io.Serializable, com.wcohen.util.gui.Visible

Perform a matching experiment using a data file, distance function and blocker.

See Also:
Serialized Form

Field Summary
static java.lang.String BLOCKER_PACKAGE
           
protected  java.lang.String blockerName
           
protected  double blockingTime
           
static java.lang.String DISTANCE_PACKAGE
           
protected  java.lang.String fileName
           
protected  java.lang.String learnerName
           
protected  double learningTime
           
protected  double matchingTime
           
protected  int numCorrectPairs
           
protected  Blocker.Pair[] pairs
           
protected  double sortingTime
           
 
Constructor Summary
MatchExpt(MatchData data, StringDistanceLearner learner)
           
MatchExpt(MatchData data, StringDistanceLearner learner, Blocker blocker)
           
 
Method Summary
 java.lang.Double averagePrecision()
          non-interpolated average precision
 java.lang.Double blockerRecall()
          performance of the blocker
 void displayResults(boolean showMismatches, java.io.PrintStream out)
          Show results in a very simple format.
 Blocker.Pair[] getPairs()
           
 void graphPrecisionRecall(java.io.PrintStream out)
          Graph interpolated precision vs recall
 double[] interpolated11PointPrecision()
          Return an array of interpolated precision at various different recall levels.
static double[] interpolated11PointRecallLevels()
          Return recall levels associated with the precision levels returned by interpolated11PointPrecision.
static void main(java.lang.String[] argv)
          Command-line interface.
 java.lang.Double maxF1()
          max F1 for any threshold
 java.lang.Double pairsPerSecond()
          Return total time to process data, divided by the number of pairs
 java.lang.Double time()
          Return total time to process data.
 com.wcohen.cls.expt.Evaluation toEvaluation()
           
 com.wcohen.util.gui.Viewer toGUI()
          Construct a viewer for the results
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BLOCKER_PACKAGE

public static final java.lang.String BLOCKER_PACKAGE
See Also:
Constant Field Values

DISTANCE_PACKAGE

public static final java.lang.String DISTANCE_PACKAGE
See Also:
Constant Field Values

pairs

protected Blocker.Pair[] pairs

numCorrectPairs

protected int numCorrectPairs

learningTime

protected double learningTime

blockingTime

protected double blockingTime

matchingTime

protected double matchingTime

sortingTime

protected double sortingTime

fileName

protected java.lang.String fileName

learnerName

protected java.lang.String learnerName

blockerName

protected java.lang.String blockerName
Constructor Detail

MatchExpt

public MatchExpt(MatchData data,
                 StringDistanceLearner learner,
                 Blocker blocker)

MatchExpt

public MatchExpt(MatchData data,
                 StringDistanceLearner learner)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

time

public java.lang.Double time()
Return total time to process data.


pairsPerSecond

public java.lang.Double pairsPerSecond()
Return total time to process data, divided by the number of pairs


averagePrecision

public java.lang.Double averagePrecision()
non-interpolated average precision


maxF1

public java.lang.Double maxF1()
max F1 for any threshold


blockerRecall

public java.lang.Double blockerRecall()
performance of the blocker


interpolated11PointRecallLevels

public static double[] interpolated11PointRecallLevels()
Return recall levels associated with the precision levels returned by interpolated11PointPrecision.


interpolated11PointPrecision

public double[] interpolated11PointPrecision()
Return an array of interpolated precision at various different recall levels.


graphPrecisionRecall

public void graphPrecisionRecall(java.io.PrintStream out)
                          throws java.io.IOException
Graph interpolated precision vs recall

Throws:
java.io.IOException

displayResults

public void displayResults(boolean showMismatches,
                           java.io.PrintStream out)
                    throws java.io.IOException
Show results in a very simple format.

Throws:
java.io.IOException

toGUI

public com.wcohen.util.gui.Viewer toGUI()
Construct a viewer for the results

Specified by:
toGUI in interface com.wcohen.util.gui.Visible

toEvaluation

public com.wcohen.cls.expt.Evaluation toEvaluation()

getPairs

public Blocker.Pair[] getPairs()

main

public static void main(java.lang.String[] argv)
Command-line interface.