|
@@ -357,8 +357,20 @@ public class RankStrategy4ShareDeepAndWidth extends RankService {
|
|
|
log.error(String.format("parse video item_rt_fea_1day_ json is wrong in {} with {}", this.CLASS_NAME, e));
|
|
|
}
|
|
|
Map<String, String> f8 = RankExtractorItemFeature.getItemRealtimeRate(vfMapNew, rtFeaPart1day);
|
|
|
-
|
|
|
item.getFeatureMap().putAll(f8);
|
|
|
+
|
|
|
+
|
|
|
+ String k1 = "sharedepth_max_avg_list_1day";
|
|
|
+ String k2 = "sharewidth_max_avg_list_1day";
|
|
|
+ if (vfMapNew.containsKey(k1)) {
|
|
|
+ Double shareDepth = vfMapNew.get(k1).getOrDefault(rtFeaPart1day, 0.0);
|
|
|
+ item.getFeatureMap().put("i_1day_sharedepth_max_avg", shareDepth + "");
|
|
|
+ }
|
|
|
+ if (vfMapNew.containsKey(k2)) {
|
|
|
+ Double shareWidth = vfMapNew.get(k2).getOrDefault(rtFeaPart1day, 0.0);
|
|
|
+ item.getFeatureMap().put("i_1day_sharewidth_max_avg", shareWidth + "");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
for (RankItem item : rankItems) {
|
|
|
String vF = videoRtFeatures.get(j);
|