Class EvaluationSerlializer
- java.lang.Object
-
- org.aksw.limes.core.io.serializer.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)
-
-
Field Summary
Fields Modifier and Type Field Description protected Filefolderprotected PrintWriterwriter
-
Constructor Summary
Constructors Constructor Description EvaluationSerlializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanclose()FilegetFile(String fileName)StringgetFileExtension()StringgetName()StringgetSeparator()voidsetFolderPath(File folder)voidsetSeparator(String separator)voidwriteToFile(List<EvaluationRun> evaluation, String file)Gets a list of evaluation run's results and serializes it to a file using the specified separator.
-
-
-
Field Detail
-
writer
protected PrintWriter writer
-
folder
protected File folder
-
-
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 serializefile- 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)
-
setFolderPath
public void setFolderPath(File folder)
-
-