فهرست منبع

Merge branch '20260225_feature_fjy_833_ecpm' of algorithm/ad-engine into master

fanjinyang 1 هفته پیش
والد
کامیت
aae73ff2a3

+ 1 - 0
ad-engine-server/src/main/java/com/tzld/piaoquan/ad/engine/server/controller/AdRecommendController.java

@@ -83,6 +83,7 @@ public class AdRecommendController {
                     participateCompetitionType.add("guarantee");
                 }
                 contentMap.put("participateCompetitionType", StringUtils.join(participateCompetitionType, ","));
+                contentMap.put("coefficientRate", rankResult.getExt().get("coefficientRate"));
                 map.put("content", contentMap);
                 return map;
             }

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

@@ -412,12 +412,15 @@ public class RankStrategyBy833 extends RankStrategyBasic {
             Double ctcvrScore = top1Item.getScoreMap().get("ctcvrScore");
             if (scoreParam.getExpCodeSet().contains(checkoutEcpmExp)) {
                 top1Item.getExt().put("ecpm", ctcvrScore * top1Item.getCpa() * 1000);
-                top1Item.getExt().put("filterEcpm", filterEcpm);
+                String filterEcpmValue = paramsMap.getOrDefault("filterEcpm", filterEcpm);
+                top1Item.getExt().put("filterEcpm", filterEcpmValue);
             } else {
                 top1Item.getExt().put("ecpm", modelCtcvrScore * top1Item.getCpa() * 1000);
             }
             putMetaFeature(top1Item, feature, reqFeature, sceneFeatureMap, request);
             top1Item.getExt().put("model", logModelName);
+            String coefficientRate = paramsMap.getOrDefault("coefficientRate", "1");
+            top1Item.getExt().put("coefficientRate", coefficientRate);
         }
         long time6 = System.currentTimeMillis();
         log.info("cost={}, getFeature={}, handleFeature={},  similar={}, bucketFeature={}, getScorerPipeline={}, " +