public class ClassifierEvaluationDaoImpl extends Object implements ClassifierEvaluationDao
Constructor and Description |
---|
ClassifierEvaluationDaoImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteCrossValidationFoldByName(String corpusName,
String splitName) |
void |
deleteFeatureEvaluation(String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
Double param1,
String param2) |
void |
deleteFeatureEvaluationByNameAndType(String corpusName,
String featureSetName,
String type) |
List<Object[]> |
getCorpusCuiTuis(String corpusName,
String conceptGraphName,
String conceptSetName) |
CrossValidationFold |
getCrossValidationFold(String corpusName,
String splitName,
String label,
int run,
int fold) |
Map<String,Double> |
getFeatureRankEvaluations(Set<String> featureNames,
String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2) |
Map<String,Double> |
getFeatureRankEvaluations(String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2) |
Map<String,FeatureRank> |
getFeatureRanks(Set<String> featureNames,
String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2) |
List<FeatureRank> |
getImputedFeaturesByPropagatedCutoff(String corpusName,
String conceptSetName,
String label,
String evaluationType,
String conceptGraphName,
String propEvaluationType,
int propRankCutoff) |
Map<String,Double> |
getInfoContent(String corpusName,
String conceptGraphName,
String conceptSet) |
List<ConceptInfo> |
getIntrinsicInfoContent(String conceptGraphName) |
Integer |
getMaxDepth(String conceptGraphName) |
Double |
getMaxFeatureEvaluation(String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2) |
org.hibernate.SessionFactory |
getSessionFactory() |
List<FeatureRank> |
getThresholdFeatures(String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2,
double evaluationThreshold) |
List<FeatureRank> |
getTopFeatures(String corpusName,
String featureSetName,
String label,
String evaluationType,
Integer foldId,
double param1,
String param2,
Integer parentConceptTopThreshold) |
void |
saveClassifierEvaluation(ClassifierEvaluation eval,
Map<Integer,String> irClassMap,
boolean saveInstanceEval) |
void |
saveClassifierEvaluation(ClassifierEvaluation eval,
Map<Integer,String> irClassMap,
boolean saveInstanceEval,
boolean saveIRStats,
Integer excludeTargetClassId) |
void |
saveFeatureEvaluation(FeatureEvaluation featureEvaluation,
List<FeatureRank> features) |
void |
saveFeatureParentChild(FeatureParentChild parchd) |
void |
saveFold(CrossValidationFold fold) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public org.hibernate.SessionFactory getSessionFactory()
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public void deleteCrossValidationFoldByName(String corpusName, String splitName)
deleteCrossValidationFoldByName
in interface ClassifierEvaluationDao
public CrossValidationFold getCrossValidationFold(String corpusName, String splitName, String label, int run, int fold)
getCrossValidationFold
in interface ClassifierEvaluationDao
public void saveClassifierEvaluation(ClassifierEvaluation eval, Map<Integer,String> irClassMap, boolean saveInstanceEval)
saveClassifierEvaluation
in interface ClassifierEvaluationDao
public void saveClassifierEvaluation(ClassifierEvaluation eval, Map<Integer,String> irClassMap, boolean saveInstanceEval, boolean saveIRStats, Integer excludeTargetClassId)
saveClassifierEvaluation
in interface ClassifierEvaluationDao
eval
- evaluation to savesaveInstanceEval
- save instance level evaluations - default falsesaveIRStats
- save IR statistics - default trueexcludeTargetClassId
- for semi-supervised learners, don't want to include the
unlabeled instances in computation of ir statistics. this
specifies the class id of the unlabeled instances (default 0)public void saveFold(CrossValidationFold fold)
saveFold
in interface ClassifierEvaluationDao
public void saveFeatureEvaluation(FeatureEvaluation featureEvaluation, List<FeatureRank> features)
saveFeatureEvaluation
in interface ClassifierEvaluationDao
public void deleteFeatureEvaluationByNameAndType(String corpusName, String featureSetName, String type)
deleteFeatureEvaluationByNameAndType
in interface ClassifierEvaluationDao
public List<FeatureRank> getTopFeatures(String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2, Integer parentConceptTopThreshold)
getTopFeatures
in interface ClassifierEvaluationDao
public Double getMaxFeatureEvaluation(String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2)
getMaxFeatureEvaluation
in interface ClassifierEvaluationDao
public List<FeatureRank> getThresholdFeatures(String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2, double evaluationThreshold)
getThresholdFeatures
in interface ClassifierEvaluationDao
public void deleteFeatureEvaluation(String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, Double param1, String param2)
deleteFeatureEvaluation
in interface ClassifierEvaluationDao
public Map<String,FeatureRank> getFeatureRanks(Set<String> featureNames, String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2)
getFeatureRanks
in interface ClassifierEvaluationDao
public Map<String,Double> getFeatureRankEvaluations(Set<String> featureNames, String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2)
getFeatureRankEvaluations
in interface ClassifierEvaluationDao
public Map<String,Double> getFeatureRankEvaluations(String corpusName, String featureSetName, String label, String evaluationType, Integer foldId, double param1, String param2)
getFeatureRankEvaluations
in interface ClassifierEvaluationDao
public List<Object[]> getCorpusCuiTuis(String corpusName, String conceptGraphName, String conceptSetName)
getCorpusCuiTuis
in interface ClassifierEvaluationDao
public Map<String,Double> getInfoContent(String corpusName, String conceptGraphName, String conceptSet)
getInfoContent
in interface ClassifierEvaluationDao
public List<ConceptInfo> getIntrinsicInfoContent(String conceptGraphName)
getIntrinsicInfoContent
in interface ClassifierEvaluationDao
public Integer getMaxDepth(String conceptGraphName)
getMaxDepth
in interface ClassifierEvaluationDao
public void saveFeatureParentChild(FeatureParentChild parchd)
saveFeatureParentChild
in interface ClassifierEvaluationDao
public List<FeatureRank> getImputedFeaturesByPropagatedCutoff(String corpusName, String conceptSetName, String label, String evaluationType, String conceptGraphName, String propEvaluationType, int propRankCutoff)
getImputedFeaturesByPropagatedCutoff
in interface ClassifierEvaluationDao
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.