Jean-Francois Leveque

Passage en notation scientifique pour les ratio

......@@ -71,8 +71,8 @@ public class PostprocessingRunner implements ApplicationRunner {
try {
CSVPrinter csvPrinter = new CSVPrinter(new FileWriter(new File(dataDir, coverageFilename)),
CSVFormat.TDF.withHeader("c1 (item)", "c2 (item-user)", "c3 (item#)"));
csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3f", coverage.getC1()),
String.format(Locale.FRENCH, "%.3f", coverage.getC2()), coverage.getC3());
csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3e", coverage.getC1()),
String.format(Locale.FRENCH, "%.3e", coverage.getC2()), coverage.getC3());
csvPrinter.close();
} catch (IOException e) {
throw new PostprocessingException("Can't write coverage file " + dataDir + coverageFilename, e);
......@@ -84,8 +84,8 @@ public class PostprocessingRunner implements ApplicationRunner {
try {
CSVPrinter csvPrinter = new CSVPrinter(new FileWriter(new File(dataDir, precisionRecallFilename)),
CSVFormat.TDF.withHeader("Precision", "Recall"));
csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3f", precisionRecall.getPrecision()),
String.format(Locale.FRENCH, "%.3f", precisionRecall.getRecall()));
csvPrinter.printRecord(String.format(Locale.FRENCH, "%.3e", precisionRecall.getPrecision()),
String.format(Locale.FRENCH, "%.3e", precisionRecall.getRecall()));
csvPrinter.close();
} catch (IOException e) {
throw new PostprocessingException("Can't write coverage file " + dataDir + precisionRecallFilename, e);
......