liqian 1 year ago
parent
commit
5b964dcef2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      config.py
  2. 1 1
      region_rule_rank_h.py

+ 1 - 1
config.py

@@ -438,7 +438,7 @@ class BaseConfig(object):
             'rule27': {'view_type': 'video-show-region', 'platform_return_rate': 0.001,
             'rule27': {'view_type': 'video-show-region', 'platform_return_rate': 0.001,
                        'region_24h_rule_key': 'rule4', '24h_rule_key': 'rule4', 'merge_func': 2,
                        'region_24h_rule_key': 'rule4', '24h_rule_key': 'rule4', 'merge_func': 2,
                        'score_func': 'back_rate_exponential_weighting1'},
                        'score_func': 'back_rate_exponential_weighting1'},
-            # score = sharerate ^ 0.5 * backrate ^ 0.8 * LOG(lastonehour_return + 1) * K2 ^ 0.5
+            # score = sharerate ^ 0.5 * backrate ^ 2 * LOG(lastonehour_return + 1) * K2 ^ 0.5
             # sharerate = lastonehour_share / (lastonehour_play + 1000)
             # sharerate = lastonehour_share / (lastonehour_play + 1000)
             # backrate = lastonehour_return / (lastonehour_share + 10)
             # backrate = lastonehour_return / (lastonehour_share + 10)
             # ctr = lastonehour_play / (lastonehour_show + 1000), 对ctr限最大值:K2 = 0.6 if ctr > 0.6 else ctr
             # ctr = lastonehour_play / (lastonehour_show + 1000), 对ctr限最大值:K2 = 0.6 if ctr > 0.6 else ctr

+ 1 - 1
region_rule_rank_h.py

@@ -418,7 +418,7 @@ def cal_score_with_back_rate_exponential_weighting2(df, param):
     :param param: 规则参数
     :param param: 规则参数
     :return:
     :return:
     """
     """
-    # score计算公式: score = sharerate ^ 0.5 * backrate ^ 0.8 * LOG(lastonehour_return + 1) * K2 ^ 0.5
+    # score计算公式: score = sharerate ^ 0.5 * backrate ^ 2 * LOG(lastonehour_return + 1) * K2 ^ 0.5
     # sharerate = lastonehour_share / (lastonehour_play + 1000)
     # sharerate = lastonehour_share / (lastonehour_play + 1000)
     # backrate = lastonehour_return / (lastonehour_share + 10)
     # backrate = lastonehour_return / (lastonehour_share + 10)
     # ctr = lastonehour_play / (lastonehour_show + 1000), 对ctr限最大值:K2 = 0.6 if ctr > 0.6 else ctr
     # ctr = lastonehour_play / (lastonehour_show + 1000), 对ctr限最大值:K2 = 0.6 if ctr > 0.6 else ctr