public class PRecEvaluator extends BasicEvaluator implements Evaluator
Modifier and Type | Field and Description |
---|---|
protected double |
fmeasure |
(package private) static org.slf4j.Logger |
logger |
protected int |
nbcorrect |
protected int |
nbexpected |
protected int |
nbfound |
protected double |
overall |
protected double |
precision |
protected double |
recall |
protected boolean |
relsensitive |
protected long |
time |
align1, align2, result
Constructor and Description |
---|
PRecEvaluator(Alignment align1,
Alignment align2)
Creation
Initiate Evaluator for precision and recall
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeDerived() |
double |
eval(java.util.Properties params)
Computes the evaluation measure (the results are stored in the object)
The formulas are standard:
given a reference alignment A
given an obtained alignment B
which are sets of cells (linking one entity of ontology O to another of ontolohy O').
|
double |
eval(java.util.Properties params,
java.lang.Object cache)
Run the evaluation between the two ontologies.
|
int |
getCorrect() |
int |
getExpected() |
double |
getFallout() |
double |
getFmeasure() |
int |
getFound() |
double |
getNoise() |
double |
getOverall() |
double |
getPrecision() |
double |
getRecall() |
java.util.Properties |
getResults()
Returns the results as a property list not further described but
suitable for display.
|
double |
getSilence() |
long |
getTime() |
java.lang.String |
HTMLString() |
PRecEvaluator |
init() |
void |
write(java.io.PrintWriter writer)
This now output the results in Lockheed format.
|
convertToObjectAlignment, convertToObjectAlignments
static final org.slf4j.Logger logger
protected double precision
protected double recall
protected double overall
protected double fmeasure
protected boolean relsensitive
protected long time
protected int nbexpected
protected int nbfound
protected int nbcorrect
public PRecEvaluator(Alignment align1, Alignment align2) throws AlignmentException
align1
- : the reference alignmentalign2
- : the alignment to evaluate
The two parameters are transformed into URIAlignment before being processed
Hence, if one of them is modified after initialisation, this will not be taken into account.AlignmentException
- when something goes wrongpublic PRecEvaluator init()
public double eval(java.util.Properties params) throws AlignmentException
eval
in interface Evaluator
params:
- the evaluation parametersAlignmentException
- when something goes wrongpublic double eval(java.util.Properties params, java.lang.Object cache) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
- when something goes wrong
//@deprecated The OntologyCache is now internal, use eval( params ) insteadprotected double computeDerived()
public java.lang.String HTMLString()
public void write(java.io.PrintWriter writer) throws java.io.IOException
write
in interface Evaluator
write
in class BasicEvaluator
java.io.IOException
- when the output cannot be performedpublic java.util.Properties getResults()
Evaluator
getResults
in interface Evaluator
public double getPrecision()
public double getRecall()
public double getOverall()
public double getFallout() throws AlignmentException
AlignmentException
public double getNoise()
public double getSilence()
public double getFmeasure()
public int getExpected()
public int getFound()
public int getCorrect()
public long getTime()
(C) INRIA & friends, 2003-2020