Prechádzať zdrojové kódy

feat:添加定向打分融合

zhaohaipeng 10 mesiacov pred
rodič
commit
2cc885e52a

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

@@ -37,11 +37,12 @@ public class TacticsAndLRModelScoreRankService {
             item.setVideoId(item.getVideoId());
             item.setLrScore(item.getLrScore());
 
-            double s1 = item.getAdDirectionScore();
+            double s1 = this.calcDirectionScore(item, adDirectionScoreMap.get(item.getAdId()));
+            item.setAdDirectionScore(s1);
+
             double s2 = item.getLrScore();
 
-            this.calcDirectionScore(item, adDirectionScoreMap.get(item.getAdId()));
-           item.setScore(s1);
+            item.setScore(s1);
 
             item.getFeatureMap().putAll(adRankItem.getFeatureMap());
             item.getMetaFeatureMap().putAll(adRankItem.getMetaFeatureMap());