Toggle navigation
Toggle navigation
This project
Loading...
Sign in
grogv3
/
grog-cubi
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jean-Francois Leveque
2017-05-04 15:12:51 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
511e64d468750ceb7e8ecc7fbf79112b852c20ba
511e64d4
1 parent
21ed0615
Passage en notation scientifique pour les ratio
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
grog-recommendation/grog-recommendation-postprocess/src/main/java/org/legrog/recommendation/postprocess/PostprocessingRunner.java
grog-recommendation/grog-recommendation-postprocess/src/main/java/org/legrog/recommendation/postprocess/PostprocessingRunner.java
View file @
511e64d
...
...
@@ -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
,
"%.3
f
"
,
coverage
.
getC1
()),
String
.
format
(
Locale
.
FRENCH
,
"%.3
f
"
,
coverage
.
getC2
()),
coverage
.
getC3
());
csvPrinter
.
printRecord
(
String
.
format
(
Locale
.
FRENCH
,
"%.3
e
"
,
coverage
.
getC1
()),
String
.
format
(
Locale
.
FRENCH
,
"%.3
e
"
,
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
,
"%.3
f
"
,
precisionRecall
.
getPrecision
()),
String
.
format
(
Locale
.
FRENCH
,
"%.3
f
"
,
precisionRecall
.
getRecall
()));
csvPrinter
.
printRecord
(
String
.
format
(
Locale
.
FRENCH
,
"%.3
e
"
,
precisionRecall
.
getPrecision
()),
String
.
format
(
Locale
.
FRENCH
,
"%.3
e
"
,
precisionRecall
.
getRecall
()));
csvPrinter
.
close
();
}
catch
(
IOException
e
)
{
throw
new
PostprocessingException
(
"Can't write coverage file "
+
dataDir
+
precisionRecallFilename
,
e
);
...
...
Please
register
or
login
to post a comment