java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.Evaluator
de.uni_mannheim.informatik.dws.melt.matching_eval.evaluator.EvaluatorBasic

public class EvaluatorBasic extends Evaluator
A basic evaluator that is easy on Memory and prints the performance results per test case in CSV format. No track aggregation is performed. If you are interested in an in-depth analysis (and if you have enough memory), you should use EvaluatorCSV.
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Default logger.
    • RESULT_FILE_NAME

      private static final String RESULT_FILE_NAME
      Name of the file that will be written to the base directory.
      See Also:
    • alignmentExtensions

      private ArrayList<String> alignmentExtensions
      The alignment extensions that are to be printed.
    • isPrintAlignmentExtensions

      private boolean isPrintAlignmentExtensions
      If true: Alignment extensions are printed in CSV.
    • metric

      private ConfusionMatrixMetric metric
      the ConfusionMatrixMetric to be used for evaluation
  • Constructor Details

    • EvaluatorBasic

      public EvaluatorBasic(ExecutionResultSet results)
      Constructor.
      Parameters:
      results - The results of the matching process that shall be evaluated.
    • EvaluatorBasic

      public EvaluatorBasic(ExecutionResultSet results, ConfusionMatrixMetric metric)
      Constructor.
      Parameters:
      results - The results of the matching process that shall be evaluated.
      metric - The ConfusionMatrixMetric to be used for evaluation
  • Method Details

    • writeResultsToDirectory

      protected void writeResultsToDirectory(File baseDirectory)
      Specified by:
      writeResultsToDirectory in class Evaluator
    • getHeader

      private List<String> getHeader()
      Get the header row for the results.
      Returns:
      Header row in the form of a String-List.
    • getAlignmentExtensions

      private ArrayList<String> getAlignmentExtensions(ExecutionResultSet results)
      This method determines the unique Alignment extensions that are used in the alignments in the ExecutionResultSet.
      Parameters:
      results - The result set of which
      Returns:
      A list of unique alignment extensions that are used.
    • toStringArrayWithArrayAtTheEnd

      String[] toStringArrayWithArrayAtTheEnd(String[] putAtTheEnd, Object... individualValues)
      Creates one string array where the putAtTheEnd values are arranged at the end of the string.
      Parameters:
      putAtTheEnd - To be put at the end.
      individualValues - Some String values.
      Returns:
      One String array where first values from individualValues and then the values from putAtTheEnd are appearing.
    • determineExtensionValuesToWriteForCSV

      private String[] determineExtensionValuesToWriteForCSV(Map<String,Object> existingExtensionValues)
      Given the existing extension values of an alignment, determine what to write in the CSV file.
      Parameters:
      existingExtensionValues - The existing extension values in the alignment.
      Returns:
      Tokenized extension values in the correct order for the CSV file to print.
    • getResultFileName

      public static String getResultFileName()
    • isPrintAlignmentExtensions

      public boolean isPrintAlignmentExtensions()
    • setPrintAlignmentExtensions

      public void setPrintAlignmentExtensions(boolean printAlignmentExtensions)