|
@@ -1,5 +1,6 @@
|
|
|
package com.tzld.piaoquan.ad.engine.service.score.impl;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.tzld.piaoquan.ad.engine.commons.score.ScoreParam;
|
|
|
import com.tzld.piaoquan.ad.engine.commons.util.NumUtil;
|
|
|
import com.tzld.piaoquan.ad.engine.service.score.RankService680;
|
|
@@ -27,6 +28,15 @@ public class TacticsAndLRModelScoreRankService {
|
|
|
|
|
|
List<AdRankItem> result = rankService680.adItemRank(requestParam, scoreParam);
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Map<Long, AdDirectionScore> adDirectionScoreMap = requestParam.getAdIdList().stream()
|
|
|
.collect(Collectors.toMap(AdPlatformCreativeDTO::getCreativeId, AdPlatformCreativeDTO::getAdDirectionScore));
|
|
|
|
|
@@ -77,7 +87,7 @@ public class TacticsAndLRModelScoreRankService {
|
|
|
Map<String, String> scoreDetailMap = new HashMap<>(scoreDetail);
|
|
|
scoreDetailMap.put("exponent", String.valueOf(exponent));
|
|
|
scoreDetailMap.put("excludeMin", String.valueOf(excludeMin));
|
|
|
- adRankItem.getMetaFeatureMap().put("adDirectionScoreDetail", scoreDetailMap);
|
|
|
+ adRankItem.getFeatureMap().putAll(scoreDetailMap);
|
|
|
}
|
|
|
|
|
|
}
|