Browse Source

feat:添加定向打分融合

zhaohaipeng 10 months ago
parent
commit
a25851aa44

+ 3 - 2
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/impl/TacticsAndLRModelScoreRankService.java

@@ -40,7 +40,8 @@ public class TacticsAndLRModelScoreRankService {
             double s1 = item.getAdDirectionScore();
             double s2 = item.getLrScore();
 
-            item.setScore(s1);
+            this.calcDirectionScore(item, adDirectionScoreMap.get(item.getAdId()));
+           item.setScore(s1);
 
             item.getFeatureMap().putAll(adRankItem.getFeatureMap());
             item.getMetaFeatureMap().putAll(adRankItem.getMetaFeatureMap());
@@ -79,7 +80,7 @@ public class TacticsAndLRModelScoreRankService {
         scoreDetailMap.put("exponent", String.valueOf(exponent));
         adRankItem.getMetaFeatureMap().put("adDirectionScoreDetail", scoreDetailMap);
 
-        return 1;
+        return s2;
     }
 
 }