public class SimilarityEvaluationLog extends BaseEvaluationLog<SimilarityEvaluationLog>
Constructor and Description |
---|
SimilarityEvaluationLog() |
SimilarityEvaluationLog(File logPath) |
SimilarityEvaluationLog(Map<String,String> config,
File logPath) |
SimilarityEvaluationLog(Map<String,String> config,
File logPath,
Date date) |
Modifier and Type | Method and Description |
---|---|
protected gnu.trove.list.TDoubleList |
getActual() |
List<SimilarityEvaluationLog> |
getChildEvaluations() |
protected gnu.trove.list.TDoubleList |
getEstimates() |
List<KnownSimGuess> |
getGuesses() |
double |
getMeanAbsoluteError() |
double |
getPearsonsCorrelation() |
double |
getRootMeanSquareError() |
double |
getSpearmansCorrelation() |
Map<String,String> |
getSummaryAsMap()
Return a textual summary of the evaluation as a map.
|
void |
merge(SimilarityEvaluationLog eval)
Merges the accumulated values in eval into
|
static SimilarityEvaluationLog |
read(File path)
Reads in the similarity evaluation at a particular path.
|
void |
record(KnownSim ks,
SRResult estimate) |
void |
recordFailed(KnownSim ks) |
static void |
setRanks(List<KnownSimGuess> guesses) |
close, formatDate, getChildFiles, getConfig, getFailed, getLogPath, getMissing, getSuccessful, getTotal, parseDate, setConfig, summarize, summarize, summarize, summarize, write
public SimilarityEvaluationLog() throws IOException
IOException
public SimilarityEvaluationLog(File logPath) throws IOException
IOException
public SimilarityEvaluationLog(Map<String,String> config, File logPath) throws IOException
IOException
public SimilarityEvaluationLog(Map<String,String> config, File logPath, Date date) throws IOException
IOException
public void recordFailed(KnownSim ks) throws IOException
IOException
public void record(KnownSim ks, SRResult estimate) throws IOException
IOException
public double getPearsonsCorrelation()
public double getSpearmansCorrelation()
public double getMeanAbsoluteError()
public double getRootMeanSquareError()
public List<KnownSimGuess> getGuesses() throws IOException, ParseException
IOException
ParseException
public static void setRanks(List<KnownSimGuess> guesses)
public Map<String,String> getSummaryAsMap()
BaseEvaluationLog
getSummaryAsMap
in class BaseEvaluationLog<SimilarityEvaluationLog>
BaseEvaluationLog.getSummaryAsMap()
public List<SimilarityEvaluationLog> getChildEvaluations() throws IOException, ParseException
getChildEvaluations
in class BaseEvaluationLog<SimilarityEvaluationLog>
IOException
ParseException
protected gnu.trove.list.TDoubleList getActual()
protected gnu.trove.list.TDoubleList getEstimates()
public void merge(SimilarityEvaluationLog eval) throws IOException
BaseEvaluationLog
merge
in class BaseEvaluationLog<SimilarityEvaluationLog>
IOException
public static SimilarityEvaluationLog read(File path) throws IOException, ParseException
path
- IOException
ParseException
Copyright © 2014. All rights reserved.