|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nz.ac.waikato.mcennis.rat.graph.model.ModelShell nz.ac.waikato.mcennis.rat.graph.algorithm.evaluation.PrecisionRecallFMeasure
public class PrecisionRecallFMeasure
Class for calculating a variety of evaluation metrics between Given(user->artist) (ground truth) and a Derived(user->artist) (predicted) set of links. Caculates precision, recall, and FMeasure both for positive and negative evaluations and with standard deviations for both metrics.
Field Summary |
---|
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
listener |
Constructor Summary | |
---|---|
PrecisionRecallFMeasure()
Creates a new instance of Evaluation |
Method Summary | |
---|---|
void |
execute(Graph g)
Calculate all the evaluation metrics against the given graph. |
java.util.List<IODescriptor> |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
java.util.List<IODescriptor> |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Properties |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
void |
init(Properties map)
Parameters to be initialized 'name' - name of this instance of this algorithm. |
protected void |
negativeFMeasure(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
protected void |
negativePrecision(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
protected void |
negativeRecall(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
protected void |
positiveFMeasure(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
protected void |
positivePrecision(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
protected void |
positiveRecall(Graph g,
ActorQuery mode,
LinkQuery sourceAnd,
LinkQuery derivedAnd,
LinkQuery.LinkEnd end)
|
PrecisionRecallFMeasure |
prototype()
All Components implement the prototype pattern. |
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
---|
addListener, fireChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
---|
addListener |
Constructor Detail |
---|
public PrecisionRecallFMeasure()
Method Detail |
---|
public void execute(Graph g)
execute
in interface Algorithm
g
- graph to be modifiedprotected void positivePrecision(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
protected void positiveRecall(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
protected void positiveFMeasure(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
protected void negativePrecision(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
protected void negativeRecall(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
protected void negativeFMeasure(Graph g, ActorQuery mode, LinkQuery sourceAnd, LinkQuery derivedAnd, LinkQuery.LinkEnd end)
public java.util.List<IODescriptor> getInputType()
Component
getInputType
in interface Component
IODescriptor
public java.util.List<IODescriptor> getOutputType()
Component
getOutputType
in interface Component
IODescriptor
public Properties getParameter()
Component
getParameter
in interface Component
public Parameter getParameter(java.lang.String param)
Component
getParameter
in interface Component
param
- key-name of the parameter
public void init(Properties map)
init
in interface Component
map
- map of the given properties naming parameters and their values in a stringpublic PrecisionRecallFMeasure prototype()
Component
prototype
in interface Component
prototype
in interface Algorithm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |