Browse Source

增加日志

xueyiming 3 days ago
parent
commit
5fa835fe13

+ 5 - 1
ad-engine-commons/src/main/java/com/tzld/piaoquan/ad/engine/commons/score/model/PAIModelV1.java

@@ -128,7 +128,11 @@ public class PAIModelV1 {
                              final Map<String, String> userFeatureMap,
                              final Map<String, String> sceneFeatureMap) {
         try {
-            LOGGER.info("PAIModelV1 items={}", JSON.toJSONString(items.get(0).getFeatureMap()));
+            Map<String, String> map = new HashMap<>();
+            map.putAll(items.get(0).getFeatureMap());
+            map.putAll(userFeatureMap);
+            map.putAll(sceneFeatureMap);
+            LOGGER.info("PAIModelV1 allFeature={}", map);
             TFRequest request = new TFRequest();
 
             for (String feature : sparseUserStrFeatures) {