Kaynağa Gözat

688加埋点

yaodaoseng 1 ay önce
ebeveyn
işleme
0d1d0e55b5

+ 5 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/score/strategy/RankStrategyBy688.java

@@ -313,7 +313,11 @@ public class RankStrategyBy688 extends RankStrategyBasic {
                 double conver = Double.parseDouble(b3Feature.getOrDefault("ad_conversion_14d", "0"));
                 double smoothCxr = NumUtil.divSmoothV1(conver, view, 1.64);
                 //模型打分和统计计算取打分更低的
-                calibratedScore = Math.min(smoothCxr, calibratedScore);
+                item.getScoreMap().put("cvcvrItemValue", 1.0);
+                if(smoothCxr <= calibratedScore){
+                    calibratedScore = smoothCxr;
+                    item.getScoreMap().put("cvcvrItemValue", 2.0);
+                }
             }
             item.setLrScore(calibratedScore);
             item.getScoreMap().put("originCtcvrScore", originalScore);