Jean-Francois Leveque

Passage en notation scientifique pour les ratio

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