Class Evaluator
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.Evaluator
- Direct Known Subclasses:
DashboardBuilder
,EvaluatorAlignmentAnalyzer
,EvaluatorBasic
,EvaluatorCopyResults
,EvaluatorCSV
,EvaluatorMcNemarSignificance
,EvaluatorPipeline
,EvaluatorRank
,EvaluatorRankGroup
,EvaluatorRelationTypePrediction
,ResultsPageHTML
,ResultsPageLatex
Abstract class for all default evaluators.
- Author:
- Sven Hertling, Jan Portisch
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
Default Loggerprotected ExecutionResultSet
Set of the individual instances ofExecutionResult
for which an evaluation will be performed.private static File
The directory where the results shall be written to. -
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.static File
Returns the default results directory.static File
protected File
getResultsDirectoryTrack
(File baseDirectory, Track track) Given a base directory and a test case, the target directory will be returned for aggregated results.protected File
getResultsDirectoryTrackMatcher
(File baseDirectory, Track track, String matcherName) Given a base directory and a test case, the target directory will be returned for aggregated results.protected File
getResultsDirectoryTrackTestcaseMatcher
(File baseDirectory, ExecutionResult executionResult) Given a base directory and anExecutionResult
, the target directory will be returned to which results can be persisted.static void
setDefaultResultsDirectory
(File directory) Set the defaults results directory.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 LOGGERDefault Logger -
resultsDirectory
The directory where the results shall be written to. -
results
Set of the individual instances ofExecutionResult
for which an evaluation will be performed.
-
-
Constructor Details
-
Evaluator
Constructor.- Parameters:
results
- The results of the matching process.
-
-
Method Details
-
setDefaultResultsDirectory
Set the defaults results directory.- Parameters:
directory
- The directory where the results shall be written to.
-
getDefaultResultsDirectory
Returns the default results directory.- Returns:
- the default results directory
-
writeToDirectory
public void writeToDirectory()Perform an evaluation and persist the results of the evaluator in the default directory. -
getDirectoryWithCurrentTime
-
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
-
getResultsDirectoryTrackTestcaseMatcher
protected File getResultsDirectoryTrackTestcaseMatcher(File baseDirectory, ExecutionResult executionResult) Given a base directory and anExecutionResult
, the target directory will be returned to which results can be persisted.- Parameters:
baseDirectory
- Base directory for evaluation results.executionResult
- Execution result whose evaluation shall be persisted.- Returns:
- Directory where evaluation result can be persisted.
-
getResultsDirectoryTrack
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.
-
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
- TrackmatcherName
- the name of ther matcher- Returns:
- Directory where aggregated evaluation results can be persisted.
-
getResults
-