Jean-Francois Leveque

Re-configuration des logs.

...@@ -67,8 +67,8 @@ public class PostprocessingExpert { ...@@ -67,8 +67,8 @@ public class PostprocessingExpert {
67 } 67 }
68 68
69 recommendableItemCount = sampleItemIds.size(); 69 recommendableItemCount = sampleItemIds.size();
70 - logger.trace("C: Nombre d'objets recommandables {}", recommendableItemCount); 70 + logger.debug("C: Nombre d'objets recommandables {}", recommendableItemCount);
71 - logger.trace("C: Taille de la matrice item-user {}", sampleItemIds.size() * sampleUserIds.size()); 71 + logger.debug("C: Taille de la matrice item-user {}", sampleItemIds.size() * sampleUserIds.size());
72 72
73 int sampleCoupleCount = 0; 73 int sampleCoupleCount = 0;
74 for (Long itemId : sampleItemIds) { 74 for (Long itemId : sampleItemIds) {
...@@ -76,8 +76,8 @@ public class PostprocessingExpert { ...@@ -76,8 +76,8 @@ public class PostprocessingExpert {
76 } 76 }
77 77
78 recommendableItemUserCount = sampleItemIds.size() * sampleUserIds.size() - sampleCoupleCount; 78 recommendableItemUserCount = sampleItemIds.size() * sampleUserIds.size() - sampleCoupleCount;
79 - logger.trace("C: Nombre de couples item-user dans l'échantillon {}", sampleCoupleCount); 79 + logger.debug("C: Nombre de couples item-user dans l'échantillon {}", sampleCoupleCount);
80 - logger.trace("C: Nombre de couples item-user recommandables {}", recommendableItemUserCount); 80 + logger.debug("C: Nombre de couples item-user recommandables {}", recommendableItemUserCount);
81 } 81 }
82 82
83 protected void analyzeRecommendations() { 83 protected void analyzeRecommendations() {
...@@ -104,11 +104,11 @@ public class PostprocessingExpert { ...@@ -104,11 +104,11 @@ public class PostprocessingExpert {
104 } 104 }
105 } 105 }
106 recommendedItemCount = recommendedItemIds.size(); 106 recommendedItemCount = recommendedItemIds.size();
107 - logger.trace("C: Nombre d'objets recommandés {}", recommendedItemCount); 107 + logger.debug("C: Nombre d'objets recommandés {}", recommendedItemCount);
108 - logger.trace("C/PR: Nombre de couples item-user recommandés {}", recommendedItemUserCount); 108 + logger.debug("C/PR: Nombre de couples item-user recommandés {}", recommendedItemUserCount);
109 annotatedItemUserCount = annotatedList.size(); 109 annotatedItemUserCount = annotatedList.size();
110 - logger.trace("PR: Nombre d'associations annotées {}", annotatedItemUserCount); 110 + logger.debug("PR: Nombre d'associations annotées {}", annotatedItemUserCount);
111 - logger.trace("PR: Nombre de recommandations annotées {}", validRecommendationCount); 111 + logger.debug("PR: Nombre de recommandations annotées {}", validRecommendationCount);
112 } 112 }
113 113
114 protected PostprocessingCoverage computeCoverage() { 114 protected PostprocessingCoverage computeCoverage() {
...@@ -116,16 +116,16 @@ public class PostprocessingExpert { ...@@ -116,16 +116,16 @@ public class PostprocessingExpert {
116 float c2; 116 float c2;
117 int c3; 117 int c3;
118 118
119 - logger.trace("C: Nombre d'objets recommandés {}", recommendedItemCount); 119 + logger.debug("C: Nombre d'objets recommandés {}", recommendedItemCount);
120 - logger.trace("C: Nombre d'objets recommandables {}", recommendableItemCount); 120 + logger.debug("C: Nombre d'objets recommandables {}", recommendableItemCount);
121 c1 = (float) recommendedItemCount / recommendableItemCount; 121 c1 = (float) recommendedItemCount / recommendableItemCount;
122 - logger.trace("c1 {}", String.format(Locale.FRENCH, "%.3f", c1)); 122 + logger.debug("c1 {}", String.format(Locale.FRENCH, "%.3f", c1));
123 - logger.trace("C: Nombre de couples item-user recommandés {}", recommendedItemUserCount); 123 + logger.debug("C: Nombre de couples item-user recommandés {}", recommendedItemUserCount);
124 - logger.trace("C: Nombre de couples item-user recommandables {}", recommendableItemUserCount); 124 + logger.debug("C: Nombre de couples item-user recommandables {}", recommendableItemUserCount);
125 c2 = (float) recommendedItemUserCount / recommendableItemUserCount; 125 c2 = (float) recommendedItemUserCount / recommendableItemUserCount;
126 - logger.trace("c2 {}", String.format(Locale.FRENCH, "%.3f", c2)); 126 + logger.debug("c2 {}", String.format(Locale.FRENCH, "%.3f", c2));
127 c3 = recommendedItemCount; 127 c3 = recommendedItemCount;
128 - logger.trace("c3 {}", c3); 128 + logger.debug("c3 {}", c3);
129 129
130 return new PostprocessingCoverage(c1,c2, c3); 130 return new PostprocessingCoverage(c1,c2, c3);
131 } 131 }
...@@ -134,13 +134,13 @@ public class PostprocessingExpert { ...@@ -134,13 +134,13 @@ public class PostprocessingExpert {
134 float precision; 134 float precision;
135 float recall; 135 float recall;
136 136
137 - logger.trace("PR: nombre de recommandations annotées {}", validRecommendationCount); 137 + logger.debug("PR: nombre de recommandations annotées {}", validRecommendationCount);
138 - logger.trace("PR: nombre de recommandations {}", recommendedItemUserCount); 138 + logger.debug("PR: nombre de recommandations {}", recommendedItemUserCount);
139 precision = (float) validRecommendationCount / recommendedItemUserCount; 139 precision = (float) validRecommendationCount / recommendedItemUserCount;
140 - logger.trace("PR: précision {}", String.format(Locale.FRENCH, "%.3f", precision)); 140 + logger.debug("PR: précision {}", String.format(Locale.FRENCH, "%.3f", precision));
141 - logger.trace("PR: nombre d'associations annotées {}", annotatedItemUserCount); 141 + logger.debug("PR: nombre d'associations annotées {}", annotatedItemUserCount);
142 recall = (float) validRecommendationCount / annotatedItemUserCount; 142 recall = (float) validRecommendationCount / annotatedItemUserCount;
143 - logger.trace("PR: rappel {}", String.format(Locale.FRENCH, "%.3f", recall)); 143 + logger.debug("PR: rappel {}", String.format(Locale.FRENCH, "%.3f", recall));
144 144
145 return new PostprocessingPrecisionRecall(precision, recall); 145 return new PostprocessingPrecisionRecall(precision, recall);
146 } 146 }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
11 11
12 <logger name="org.legrog" level="DEBUG"/> 12 <logger name="org.legrog" level="DEBUG"/>
13 <logger name="org.legrog.recommendation.postprocess" level="TRACE"/> 13 <logger name="org.legrog.recommendation.postprocess" level="TRACE"/>
14 + <logger name="org.legrog.recommendation.postprocess.PostprocessingExpert" level="DEBUG"/>
14 15
15 <root level="warn"> 16 <root level="warn">
16 <appender-ref ref="STDOUT" /> 17 <appender-ref ref="STDOUT" />
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
11 11
12 <logger name="org.legrog" level="DEBUG"/> 12 <logger name="org.legrog" level="DEBUG"/>
13 <logger name="org.legrog.recommendation.process" level="TRACE"/> 13 <logger name="org.legrog.recommendation.process" level="TRACE"/>
14 + <logger name="org.legrog.recommendation.process.ProcessingExpert" level="DEBUG"/>
14 15
15 <root level="warn"> 16 <root level="warn">
16 <appender-ref ref="STDOUT" /> 17 <appender-ref ref="STDOUT" />
......