|
@@ -280,7 +280,14 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
long time4 = System.currentTimeMillis();
|
|
|
// 打分排序
|
|
|
// getScorerPipeline
|
|
|
+
|
|
|
+ if (CollectionUtils.isEmpty(adRankItems)) {
|
|
|
+ log.error("adRankItems is empty");
|
|
|
+ }
|
|
|
List<AdRankItem> result = ScorerUtils.getScorerPipeline(ScorerUtils.PAI_SCORE_CONF_20250214).scoring(sceneFeatureMap, userFeatureMap, adRankItems);
|
|
|
+ if (CollectionUtils.isEmpty(result)) {
|
|
|
+ log.error("scoring result is empty");
|
|
|
+ }
|
|
|
long time5 = System.currentTimeMillis();
|
|
|
// calibrate score for negative sampling or cold start
|
|
|
for (AdRankItem item : result) {
|
|
@@ -303,6 +310,9 @@ public class RankStrategyBy688 extends RankStrategyBasic {
|
|
|
}
|
|
|
|
|
|
calculateCtcvrScore(result, request, scoreParam, "dnn", reqFeature);
|
|
|
+ if (CollectionUtils.isEmpty(result)) {
|
|
|
+ log.error("calculateCtcvrScore result is empty");
|
|
|
+ }
|
|
|
// loop
|
|
|
double cpmCoefficient = weightParam.getOrDefault("cpmCoefficient", 0.9);
|
|
|
boolean isGuaranteeType = false;
|