edu.columbia.cs.ref.algorithm.evaluation.measure.impl
Class NumberOfTruePositives

java.lang.Object
  extended by edu.columbia.cs.ref.algorithm.evaluation.measure.impl.NumberOfTruePositives
All Implemented Interfaces:
Measure

public class NumberOfTruePositives
extends java.lang.Object
implements Measure

The Class NumberOfTruePositives counts the number of positive answers produced by the model that are consistent with the values in the gold labels of the testing data.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes

Constructor Summary
NumberOfTruePositives()
           
 
Method Summary
 double getValue(java.util.Map<OperableStructure,java.util.Set<java.lang.String>> labels, java.util.Map<OperableStructure,java.util.Map<Model.PredictionProperties,java.lang.Object>> properties)
          Obtains the value of the metric
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberOfTruePositives

public NumberOfTruePositives()
Method Detail

getValue

public double getValue(java.util.Map<OperableStructure,java.util.Set<java.lang.String>> labels,
                       java.util.Map<OperableStructure,java.util.Map<Model.PredictionProperties,java.lang.Object>> properties)
Description copied from interface: Measure
Obtains the value of the metric

Specified by:
getValue in interface Measure
Parameters:
labels - map that associates a label to each operable structure
properties - map that stores the properties of the prediction
Returns:
the value of the metric