|
@@ -28,14 +28,14 @@ public class TacticsAndLRModelScoreRankService {
|
|
|
// LR模型打分结果
|
|
|
List<AdRankItem> result = rankService680.adItemRank(requestParam, scoreParam);
|
|
|
|
|
|
- List<JSONObject> collect = result.stream().map(item -> {
|
|
|
- JSONObject json = new JSONObject();
|
|
|
- json.put("cid", item.getAdId());
|
|
|
- json.put("score", item.getScore());
|
|
|
- json.put("modelScore", item.getLrScore());
|
|
|
- json.put("allfeature", item.getFeatureMap());
|
|
|
- return json;
|
|
|
- }).collect(Collectors.toList());
|
|
|
+ // List<JSONObject> collect = result.stream().map(item -> {
|
|
|
+ // JSONObject json = new JSONObject();
|
|
|
+ // json.put("cid", item.getAdId());
|
|
|
+ // json.put("score", item.getScore());
|
|
|
+ // json.put("modelScore", item.getLrScore());
|
|
|
+ // json.put("allfeature", item.getFeatureMap());
|
|
|
+ // return json;
|
|
|
+ // }).collect(Collectors.toList());
|
|
|
|
|
|
Map<Long, AdDirectionScore> adDirectionScoreMap = requestParam.getAdIdList().stream()
|
|
|
.collect(Collectors.toMap(AdPlatformCreativeDTO::getCreativeId, AdPlatformCreativeDTO::getAdDirectionScore));
|