public class MostSimilarEvaluationLog extends BaseEvaluationLog<MostSimilarEvaluationLog>
Constructor and Description |
---|
MostSimilarEvaluationLog() |
MostSimilarEvaluationLog(File logPath) |
MostSimilarEvaluationLog(Map<String,String> config,
File logPath) |
MostSimilarEvaluationLog(Map<String,String> config,
File logPath,
Date date) |
Modifier and Type | Method and Description |
---|---|
List<MostSimilarEvaluationLog> |
getChildEvaluations() |
double |
getNDCG() |
double |
getPearsonsCorrelation() |
double |
getPenalizedNDCG() |
PrecisionRecallAccumulator |
getPrecisionRecall(int n,
double threshold) |
double |
getSpearmansCorrelation() |
Map<String,String> |
getSummaryAsMap()
Return a textual summary of the evaluation as a map.
|
void |
merge(MostSimilarEvaluationLog eval)
Merges the accumulated values in eval into
|
static MostSimilarEvaluationLog |
read(File path) |
void |
record(KnownMostSim kms,
MostSimilarGuess guess) |
void |
record(KnownMostSim kms,
SRResultList mostSimilar) |
void |
recordFailed(KnownMostSim kms) |
void |
setPrecisionRecallRanks(int[] precisionRecallRanks) |
void |
setRelevanceThreshold(double relevanceThreshold) |
close, formatDate, getChildFiles, getConfig, getFailed, getLogPath, getMissing, getSuccessful, getTotal, parseDate, setConfig, summarize, summarize, summarize, summarize, write
public MostSimilarEvaluationLog() throws IOException
IOException
public MostSimilarEvaluationLog(File logPath) throws IOException
IOException
public MostSimilarEvaluationLog(Map<String,String> config, File logPath) throws IOException
IOException
public MostSimilarEvaluationLog(Map<String,String> config, File logPath, Date date) throws IOException
IOException
public void record(KnownMostSim kms, SRResultList mostSimilar) throws IOException
IOException
public void record(KnownMostSim kms, MostSimilarGuess guess) throws IOException
IOException
public double getNDCG()
public double getPenalizedNDCG()
public PrecisionRecallAccumulator getPrecisionRecall(int n, double threshold)
public void recordFailed(KnownMostSim kms) throws IOException
IOException
public Map<String,String> getSummaryAsMap()
BaseEvaluationLog
getSummaryAsMap
in class BaseEvaluationLog<MostSimilarEvaluationLog>
BaseEvaluationLog.getSummaryAsMap()
public void merge(MostSimilarEvaluationLog eval) throws IOException
BaseEvaluationLog
merge
in class BaseEvaluationLog<MostSimilarEvaluationLog>
IOException
public List<MostSimilarEvaluationLog> getChildEvaluations() throws IOException, ParseException
getChildEvaluations
in class BaseEvaluationLog<MostSimilarEvaluationLog>
IOException
ParseException
public double getSpearmansCorrelation()
public double getPearsonsCorrelation()
public static MostSimilarEvaluationLog read(File path) throws IOException, ParseException
IOException
ParseException
public void setPrecisionRecallRanks(int[] precisionRecallRanks)
public void setRelevanceThreshold(double relevanceThreshold)
Copyright © 2014. All rights reserved.