|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlgorithmInterface<TypeWID,TypeQ,TypeR>
Method Summary | |
---|---|
Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> |
getCombinedEstLabels()
Get computed/partially-computed results |
Map<TypeQ,TypeR> |
getGoldStandard()
Get ground truth question response pairs from the gold partition |
TreeSet<TypeR> |
getResponseCategories()
Get valid response categories |
Map<TypeQ,TypeR> |
getTuneGT()
Get ground truth question response pairs from the tune partition |
Map<TypeWID,workersDataStruct<TypeQ,TypeR>> |
getWorkersMap()
Get all responses stored for each worker |
Map<TypeWID,workersDataStruct<TypeQ,TypeR>> |
getWorkersMapGold()
Get worker responses from the Gold partition |
Map<TypeWID,workersDataStruct<TypeQ,TypeR>> |
getWorkersMapTune()
Get worker responses from the Tune partition |
boolean |
hasCombinedEstLabels()
Checks if results are computed |
boolean |
hasGoldStandard()
Checks if gold standard is used by the algorithm (supervised) |
boolean |
hasResponseCategories()
Checks for presence of response categories |
boolean |
hasTuneGT()
Checks if ground truth for tune partition is used by the algorithm (lightly-supervised) |
boolean |
hasWorkersMap()
Checks for presence of worker responses from the evaluation partition |
boolean |
hasWorkersMapGold()
Checks for presence of worker responses from the gold partition |
boolean |
hasWorkersMapTune()
Checks for presence of worker responses from the tune partition |
void |
setCombinedEstLabels(Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> combinedEstLabels)
Load computed/partially-computed results |
void |
setGoldStandard(Map<TypeQ,TypeR> goldStandard)
Set ground truth question response pairs from the gold partition |
void |
setResponseCategories(TreeSet<TypeR> responseCategories)
Set response categories |
void |
setTuneGT(Map<TypeQ,TypeR> tuneGT)
Set ground truth question response pairs from the tune partition |
void |
setWorkersMap(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMap)
Set responses to questions for each worker |
void |
setWorkersMapGold(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMapGold)
Set worker responses from the Gold partition |
void |
setWorkersMapTune(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMapTune)
Set worker responses from the Tune partition |
Method Detail |
---|
Map<TypeWID,workersDataStruct<TypeQ,TypeR>> getWorkersMap()
void setWorkersMap(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMap)
workersMap
- is a Map from Worker ID to a worker object holding questions and responsesTreeSet<TypeR> getResponseCategories()
void setResponseCategories(TreeSet<TypeR> responseCategories)
responseCategories
- is a TreeSet of TypeRMap<TypeWID,workersDataStruct<TypeQ,TypeR>> getWorkersMapTune()
void setWorkersMapTune(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMapTune)
workersMapTune
- is a Map from workers to objects containing worker questions and responsesMap<TypeWID,workersDataStruct<TypeQ,TypeR>> getWorkersMapGold()
void setWorkersMapGold(Map<TypeWID,workersDataStruct<TypeQ,TypeR>> workersMapGold)
workersMapGold
- is a Map from workers to objects containing worker questions and responsesMap<TypeQ,TypeR> getTuneGT()
void setTuneGT(Map<TypeQ,TypeR> tuneGT)
tuneGT
- is a Map from questions to responsesMap<TypeQ,TypeR> getGoldStandard()
void setGoldStandard(Map<TypeQ,TypeR> goldStandard)
goldStandard
- is a Map from questions to responsesboolean hasWorkersMap()
boolean hasWorkersMapTune()
boolean hasWorkersMapGold()
boolean hasResponseCategories()
boolean hasGoldStandard()
boolean hasTuneGT()
Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> getCombinedEstLabels()
boolean hasCombinedEstLabels()
void setCombinedEstLabels(Map<TypeQ,Pair<TypeR,Map<TypeR,Double>>> combinedEstLabels)
combinedEstLabels
- is a Map from questions to Pair of predicted response and response probabilities
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |