|
|
@@ -52,6 +52,9 @@ public class RankStrategyBy833 extends RankStrategyBasic {
|
|
|
@Value("${word2vec.exp:694}")
|
|
|
private String word2vecExp;
|
|
|
|
|
|
+ @Value("${view.833.limit:3000}")
|
|
|
+ private Integer viewLimit;
|
|
|
+
|
|
|
|
|
|
// FIXME(zhoutian): 可能需要独立配置
|
|
|
@ApolloJsonValue("${rank.score.weight.680:{}}")
|
|
|
@@ -310,7 +313,7 @@ public class RankStrategyBy833 extends RankStrategyBasic {
|
|
|
Map<String, String> b3Feature = cidFeature.getOrDefault("alg_cid_feature_cid_action", EMPTY_STRING_MAP);
|
|
|
double view3Day = Double.parseDouble(b3Feature.getOrDefault("ad_view_3d", "0"));
|
|
|
if ((CollectionUtils.isNotEmpty(DnnCidDataHelper.getCidSetV2()) && !DnnCidDataHelper.getCidSetV2().contains(item.getAdId()))
|
|
|
- || view3Day <= 3000) {
|
|
|
+ || view3Day <= viewLimit) {
|
|
|
double view = Double.parseDouble(b3Feature.getOrDefault("ad_view_14d", "0"));
|
|
|
double conver = Double.parseDouble(b3Feature.getOrDefault("ad_conversion_14d", "0"));
|
|
|
double smoothCxr = NumUtil.divSmoothV1(conver, view, 1.64);
|