Class EvaluatorMultiSource
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.multisource.EvaluatorMultiSource
- Direct Known Subclasses:
EvaluatorMultiSourceBasic
Abstract class for all multisource evaluators.
The default results folder can be set via
Evaluator
.-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
protected ExecutionResultSetMultiSource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkAndCreateDirectory
(File directory) Checks if the directory is not null, creates it and check if it is a directory.protected File
getResultsDirectoryTrackMatcher
(File baseDirectory, Track track) Given a base directory and a test case, the target directory will be returned for aggregated results.protected abstract void
writeResultsToDirectory
(File baseDirectory) void
Perform an evaluation and persist the results of the evaluator in the default directory.void
writeToDirectory
(File baseDirectory) Perform an evaluation and persist the results of the evaluator in the given directory.void
writeToDirectory
(String baseDirectoryPath) Perform an evaluation and persist the results of the evaluator in the default directory.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
results
-
-
Constructor Details
-
EvaluatorMultiSource
Constructor.- Parameters:
results
- The results of the matching process.
-
-
Method Details
-
writeToDirectory
public void writeToDirectory()Perform an evaluation and persist the results of the evaluator in the default directory. -
writeToDirectory
Perform an evaluation and persist the results of the evaluator in the given directory.- Parameters:
baseDirectory
- The directory which shall be used to place the evaluation files. The directory will be created if it does not exist.
-
writeResultsToDirectory
-
writeToDirectory
Perform an evaluation and persist the results of the evaluator in the default directory.- Parameters:
baseDirectoryPath
- The directory path which shall be used to place the evaluation files. The directory will be created if it does not exist.
-
checkAndCreateDirectory
Checks if the directory is not null, creates it and check if it is a directory. Throws an exception if something is not correct.- Parameters:
directory
- the directory to inspect
-
getResultsDirectoryTrackMatcher
Given a base directory and a test case, the target directory will be returned for aggregated results.- Parameters:
baseDirectory
- Base directory for evaluation results.track
- Track- Returns:
- Directory where aggregated evaluation results can be persisted.
-