|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.BasicEvaluator
fr.inrialpes.exmo.align.impl.eval.PRecEvaluator
public class PRecEvaluator
Evaluate proximity between two alignments. This function implements Precision/Recall/Fallout. The first alignment is thus the expected one. NOTE: This measure does not take relations nor confidences into account For relation, this will wait for algebra based relations
Field Summary | |
---|---|
protected double |
fallout
|
protected double |
fmeasure
|
protected int |
nbcorrect
|
protected int |
nbexpected
|
protected int |
nbfound
|
protected double |
overall
|
protected double |
precision
|
protected double |
recall
|
protected long |
time
|
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator |
---|
align1, align2, result |
Constructor Summary | |
---|---|
PRecEvaluator(Alignment align1,
Alignment align2)
Creation Initiate Evaluator for precision and recall |
Method Summary | |
---|---|
protected double |
computeDerived()
|
double |
eval(Properties params)
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(Properties params,
Object cache)
Run the evaluation between the two ontologies. |
int |
getCorrect()
|
int |
getExpected()
|
double |
getFallout()
|
double |
getFmeasure()
|
int |
getFound()
|
double |
getOverall()
|
double |
getPrecision()
|
double |
getRecall()
|
Properties |
getResults()
Returns the results as a property list not further described but suitable for display. |
long |
getTime()
|
String |
HTMLString()
|
void |
init()
|
void |
write(PrintWriter writer)
This now output the results in Lockheed format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double precision
protected double recall
protected double fallout
protected double overall
protected double fmeasure
protected long time
protected int nbexpected
protected int nbfound
protected int nbcorrect
Constructor Detail |
---|
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
Method Detail |
---|
public void init()
public double eval(Properties params) throws AlignmentException
eval
in interface Evaluator
AlignmentException
public double eval(Properties params, Object cache) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
protected double computeDerived()
public String HTMLString()
public void write(PrintWriter writer) throws IOException
write
in interface Evaluator
write
in class BasicEvaluator
IOException
public Properties getResults()
Evaluator
getResults
in interface Evaluator
public double getPrecision()
public double getRecall()
public double getOverall()
public double getFallout()
public double getFmeasure()
public int getExpected()
public int getFound()
public int getCorrect()
public long getTime()
|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |