|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.ranking.RankingEvaluation
public class RankingEvaluation
Evaluate a classifier as a ranker
Nested Class Summary | |
---|---|
class |
RankingEvaluation.MyCLP
|
Constructor Summary | |
---|---|
RankingEvaluation()
|
Method Summary | |
---|---|
double[] |
averageElevenPointPrecision()
Interpolated precision at eleven recall levels, averaged over all examples. |
double |
averagePrecision(java.lang.String rankingId)
Non-interpolated average precision. |
java.lang.String |
averageRecallAsFunctionOfK()
Recall as function of K, averaged over all examples. |
double[] |
elevenPointPrecision(java.lang.String rankingId)
Interpolated precision at eleven recall levels: 0.0, ... |
void |
extend(java.lang.String rankingId,
java.util.List<Example> ranking,
BinaryClassifier classifier)
|
void |
extend(java.lang.String rankingId,
java.util.List<Example> ranking,
BinaryClassifier classifier,
java.util.Set<java.lang.String> unrankedPos)
|
java.lang.String |
getExtensionFor(java.lang.String format)
Recomended extension for the format with the given name. |
java.lang.String[] |
getFormatNames()
List of formats in which the object can be saved. |
static RankingEvaluation |
load(java.io.File file)
|
static void |
main(java.lang.String[] args)
|
double |
maxF1(java.lang.String rankingId)
Max value of F1 over all possible thresholds. |
double |
maxRecall(java.lang.String rankingId)
|
void |
processArguments(java.lang.String[] args)
|
java.lang.Object |
restore(java.io.File file)
Restore the object from a file. |
void |
saveAs(java.io.File file,
java.lang.String formatName)
Save this object to the given file, in the given format. |
Viewer |
toGUI()
Create a view of this object |
java.lang.String |
toTable()
A summary table. |
java.lang.String |
toTable(java.lang.String name,
int numToShowAllEntries)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RankingEvaluation()
Method Detail |
---|
public void extend(java.lang.String rankingId, java.util.List<Example> ranking, BinaryClassifier classifier)
public void extend(java.lang.String rankingId, java.util.List<Example> ranking, BinaryClassifier classifier, java.util.Set<java.lang.String> unrankedPos)
public double averagePrecision(java.lang.String rankingId)
public double maxF1(java.lang.String rankingId)
public double maxRecall(java.lang.String rankingId)
public double[] averageElevenPointPrecision()
public double[] elevenPointPrecision(java.lang.String rankingId)
public java.lang.String toTable()
public java.lang.String averageRecallAsFunctionOfK()
public java.lang.String toTable(java.lang.String name, int numToShowAllEntries)
public Viewer toGUI()
Visible
toGUI
in interface Visible
public java.lang.String[] getFormatNames()
Saveable
getFormatNames
in interface Saveable
public java.lang.String getExtensionFor(java.lang.String format)
Saveable
getExtensionFor
in interface Saveable
public void saveAs(java.io.File file, java.lang.String formatName) throws java.io.IOException
Saveable
saveAs
in interface Saveable
java.io.IOException
public java.lang.Object restore(java.io.File file) throws java.io.IOException
Saveable
restore
in interface Saveable
java.io.IOException
public static RankingEvaluation load(java.io.File file) throws java.io.IOException
java.io.IOException
public void processArguments(java.lang.String[] args)
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |