public class EvalTrace
extends java.lang.Object
implements org.apache.uima.resource.SharedResourceObject
EvalTrace.RecPoint
for precision/recall metrics against against
a reference list. This resource is used and filled by EvalEngine
.
Each EvalTrace.RecPoint
holds the number of true positive (tp) extracted
terms at a given index (where index is the top n extracted terms) aginst the
reference list.Modifier and Type | Class and Description |
---|---|
class |
EvalTrace.RecPoint |
Constructor and Description |
---|
EvalTrace() |
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Remove all evaluation traces.
|
static EvalTrace |
get(java.lang.String traceName) |
EvalTrace.RecPoint |
getAtRank(int rank)
Get the
EvalTrace.RecPoint for rank number of extracted indexes. |
EvalTrace.RecPoint |
getAtRecall(double recallThreshorld)
Get the first
EvalTrace.RecPoint whose recall exceeds the parameter
precisionThreshorld. |
java.util.Collection<EvalTrace.RecPoint> |
getChartAxisPoints(boolean takeLastPoint) |
java.util.Collection<java.lang.Integer> |
getIndexes() |
EvalTrace.RecPoint |
getLast() |
double |
getMaxRecall() |
java.lang.String |
getName() |
java.util.Collection<EvalTrace.RecPoint> |
getPoints() |
java.util.Collection<java.lang.Double> |
getValues(java.lang.String pName) |
void |
keepIndexes(java.util.Collection<java.lang.Integer> indexes)
Filters this eval trace and keeps only the parameter indexes.
|
void |
load(org.apache.uima.resource.DataResource aData) |
void |
setRtlSize(int refRtlSize) |
EvalTrace |
toDisplayable()
Creates a clone of this trace with only points that are
meant to be displayed on a chart (these points are
EvalEngine.CHART_AXIS_POINTS ) |
java.lang.String |
toString() |
void |
trace(int index,
int tp,
java.util.List<ReferenceTermList.RTLTerm> foundTerms) |
public void setRtlSize(int refRtlSize)
public void trace(int index, int tp, java.util.List<ReferenceTermList.RTLTerm> foundTerms)
public double getMaxRecall()
public EvalTrace.RecPoint getLast()
public java.lang.String toString()
toString
in class java.lang.Object
public EvalTrace.RecPoint getAtRecall(double recallThreshorld)
EvalTrace.RecPoint
whose recall exceeds the parameter
precisionThreshorld.recallThreshorld
- public EvalTrace.RecPoint getAtRank(int rank)
EvalTrace.RecPoint
for rank number of extracted indexes.rank
- public java.util.Collection<java.lang.Integer> getIndexes()
public java.util.Collection<java.lang.Double> getValues(java.lang.String pName)
public java.util.Collection<EvalTrace.RecPoint> getPoints()
public java.util.Collection<EvalTrace.RecPoint> getChartAxisPoints(boolean takeLastPoint)
public void load(org.apache.uima.resource.DataResource aData) throws org.apache.uima.resource.ResourceInitializationException
load
in interface org.apache.uima.resource.SharedResourceObject
org.apache.uima.resource.ResourceInitializationException
public static void clear()
public static EvalTrace get(java.lang.String traceName)
public java.lang.String getName()
public EvalTrace toDisplayable()
EvalEngine.CHART_AXIS_POINTS
)public void keepIndexes(java.util.Collection<java.lang.Integer> indexes)