public class Evaluator extends Object
| Constructor and Description |
|---|
Evaluator() |
| Modifier and Type | Method and Description |
|---|---|
ACache |
cacheUnion(ACache a,
ACache b) |
List<EvaluationRun> |
crossValidate(AMLAlgorithm algorithm,
List<LearningParameter> parameter,
Set<TaskData> datasets,
int foldNumber,
Set<EvaluatorType> qlMeasures,
Set<IQuantitativeMeasure> qnMeasures) |
List<EvaluationRun> |
evaluate(List<TaskAlgorithm> TaskAlgorithms,
Set<TaskData> datasets,
Set<EvaluatorType> QlMeasures,
Set<IQuantitativeMeasure> QnMeasures) |
List<FoldData> |
generateFolds(EvaluationData data,
int foldNumber) |
List<AMapping> |
generateMappingFolds(AMapping refMap,
ACache source,
ACache target,
int foldNumber) |
static String |
getRandomTargetInstance(ACache source,
ACache target,
List<String> values,
Random random,
HashMap<String,HashMap<String,Double>> refMap,
String sourceInstance,
int previousRandom) |
AMapping |
removeSubMap(AMapping mainMap,
AMapping subMap) |
public List<EvaluationRun> evaluate(List<TaskAlgorithm> TaskAlgorithms, Set<TaskData> datasets, Set<EvaluatorType> QlMeasures, Set<IQuantitativeMeasure> QnMeasures)
TaskAlgorithms - the set of algorithms used to generate the predicted mappingsdatasets - the set of the datasets to apply the algorithms on them. The should include source Cache, target Cache, goldstandard and predicted mappingQlMeasures - the set of qualitative measuresQnMeasures - the set of quantitative measurespublic List<EvaluationRun> crossValidate(AMLAlgorithm algorithm, List<LearningParameter> parameter, Set<TaskData> datasets, int foldNumber, Set<EvaluatorType> qlMeasures, Set<IQuantitativeMeasure> qnMeasures)
algorithm - the algorithm used to generate the predicted mappingsdatasets - the set of the datasets to apply the algorithms on them. The should include source Cache, target Cache, goldstandard and predicted mappingparameter - the parameters of the algorithm (will be set to default if this is null)foldNumber - the number of subsamples to divide the data (k)qlMeasures - the set of qualitative measuresqnMeasures - the set of quantitative measurespublic List<FoldData> generateFolds(EvaluationData data, int foldNumber)
public List<AMapping> generateMappingFolds(AMapping refMap, ACache source, ACache target, int foldNumber)
public static String getRandomTargetInstance(ACache source, ACache target, List<String> values, Random random, HashMap<String,HashMap<String,Double>> refMap, String sourceInstance, int previousRandom)
Copyright © 2018. All rights reserved.