Class Evaluator
- java.lang.Object
-
- org.aksw.limes.core.evaluation.evaluator.Evaluator
-
public class Evaluator extends Object
This evaluator is responsible for evaluating set of datasets that have source, target, gold standard and mappings against set of measures- Since:
- 1.0
- Version:
- 1.0
- Author:
- Mofeed Hassan (mounir@informatik.uni-leipzig.de), Daniel Obraczka (obraczka@studserv.uni-leipzig.de)
-
-
Constructor Summary
Constructors Constructor Description Evaluator()
-
Method Summary
-
-
-
Method Detail
-
evaluate
public List<EvaluationRun> evaluate(List<TaskAlgorithm> TaskAlgorithms, Set<TaskData> datasets, Set<EvaluatorType> QlMeasures, Set<IQuantitativeMeasure> QnMeasures)
- Parameters:
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 measures- Returns:
- List - contains list of multiple runs evaluation results corresponding to the algorithms, its implementation and used dataset
-
crossValidate
public List<EvaluationRun> crossValidate(AMLAlgorithm algorithm, List<LearningParameter> parameter, Set<TaskData> datasets, int foldNumber, Set<EvaluatorType> qlMeasures, Set<IQuantitativeMeasure> qnMeasures)
- Parameters:
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 measures- Returns:
- List - contains list of multiple runs evaluation results corresponding to the algorithms, its implementation and used dataset
-
crossValidateWithTuningAndStatisticalTest
public Summary crossValidateWithTuningAndStatisticalTest(List<TaskAlgorithm> TaskAlgorithms, Set<TaskData> datasets, Set<EvaluatorType> qlMeasures, int foldNumber)
-
createParameterGrid
public Set<List<LearningParameter>> createParameterGrid(Map<LearningParameter,List<Object>> parameters)
-
main
public static void main(String[] args) throws UnsupportedMLImplementationException
-
generateFolds
public List<FoldData> generateFolds(EvaluationData data, int foldNumber, boolean withNegativeExamples)
-
generateMappingFolds
public List<AMapping> generateMappingFolds(AMapping refMap, ACache source, ACache target, int foldNumber, boolean withNegativeExamples)
-
getRandomTargetInstance
public static String getRandomTargetInstance(ACache source, ACache target, List<String> values, Random random, HashMap<String,HashMap<String,Double>> refMap, String sourceInstance, int previousRandom)
-
-