Class EvaluationSerlializer


  • public class EvaluationSerlializer
    extends Object
    This class serializes the results of evaluating a machine learning algorithm that uses a dataset against one or more of evaluation measures
    Since:
    1.0
    Version:
    1.0
    Author:
    Mofeed Hassan (mounir@informatik.uni-leipzig.de)
    • Constructor Detail

      • EvaluationSerlializer

        public EvaluationSerlializer()
    • Method Detail

      • close

        public boolean close()
      • writeToFile

        public void writeToFile​(List<EvaluationRun> evaluation,
                                String file)
        Gets a list of evaluation run's results and serializes it to a file using the specified separator. The method assume that the class already knows the separator which specifies the file extension too
        Parameters:
        evaluation - List to serialize
        file - The file in which the mapping is to be serialized
      • getName

        public String getName()
      • getFileExtension

        public String getFileExtension()
      • getSeparator

        public String getSeparator()
      • setSeparator

        public void setSeparator​(String separator)
      • getFile

        public File getFile​(String fileName)
      • setFolderPath

        public void setFolderPath​(File folder)