|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.square.qa.utilities.constructs.Results<TypeQ,TypeR>
public class Results<TypeQ,TypeR>
Constructor Summary | |
---|---|
Results(Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> compiledResults,
Set<TypeR> responseCategories)
Constructor |
Method Summary | |
---|---|
void |
computeComparableResultVector()
Computes results as a vector of type DoubleMatrix |
void |
computeComparableResuts()
Extracts results from compiled results in sorted order of questions |
void |
computeMetrics(boolean tune,
boolean supervised)
Computes metrics |
Map<TypeR,Integer> |
getCategMap()
|
List<Double> |
getCategories()
|
List<Pair<TypeR,Double>> |
getComparableResults()
|
org.jblas.DoubleMatrix |
getComparableResultVector()
|
Metrics |
getMetrics()
|
void |
setGold(Map<TypeQ,TypeR> gold)
Loads gold responses |
void |
setGroundTruth(Map<TypeQ,TypeR> groundTruth)
Loads ground truth responses |
void |
setTune(Map<TypeQ,TypeR> tuneSet)
Loads tune responses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Results(Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> compiledResults, Set<TypeR> responseCategories)
compiledResults
- is a Map from questions to Pair of predicted response and response probabilitiesresponseCategories
- is a sorted set of holding response categoriesMethod Detail |
---|
public void setGold(Map<TypeQ,TypeR> gold)
gold
- is a Map from questions to responsespublic void setTune(Map<TypeQ,TypeR> tuneSet)
tuneSet
- is a Map from questions to responsespublic void setGroundTruth(Map<TypeQ,TypeR> groundTruth)
groundTruth
- is a Map from questions to responsespublic void computeComparableResuts()
public List<Pair<TypeR,Double>> getComparableResults()
public void computeComparableResultVector()
public org.jblas.DoubleMatrix getComparableResultVector()
public List<Double> getCategories()
public Map<TypeR,Integer> getCategMap()
public void computeMetrics(boolean tune, boolean supervised)
tune
- is a booleansupervised
- is a booleanpublic Metrics getMetrics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |