Преглед изворни кода

Merge branch 'test' of https://git.yishihui.com/algorithm/rov-offline into test

caida пре 1 година
родитељ
комит
837259b0c1
2 измењених фајлова са 12 додато и 12 уклоњено
  1. 11 11
      config.py
  2. 1 1
      flowpool_data_update_with_level.py

+ 11 - 11
config.py

@@ -640,7 +640,7 @@ class BaseConfig(object):
     QUICK_FLOWPOOL_KEY_NAME_PREFIX_SET = 'flow:pool:quick:item:'
     # 流量池视频分层存放 redis key前缀,完整格式 flow:pool:level:item:{appType}:{level}
     FLOWPOOL_KEY_NAME_PREFIX_SET_LEVEL = 'flow:pool:level:item:'
-    # 流量池各层分发概率权重存放 redis key,完整格式 flow:pool:level:
+    # 流量池各层分发概率权重存放 redis key,完整格式 flow:pool:level:recommend:weight
     FLOWPOOL_LEVEL_WEIGHT_KEY_NAME = 'flow:pool:level:recommend:weight'
     # 快速曝光流量池分发概率 redis key前缀,完整格式 flow:pool:quick:distribute:rate:{flowPool_id}
     QUICK_FLOWPOOL_DISTRIBUTE_RATE_KEY_NAME_PREFIX = 'flow:pool:quick:distribute:rate:'
@@ -1581,32 +1581,32 @@ class BaseConfig(object):
                 'ab0': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab1': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab2': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab3': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab4': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab5': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 # 'ab6': {
                 #     'update_hours': list(range(9)), 'update_param': 1/2,
@@ -1616,22 +1616,22 @@ class BaseConfig(object):
                 'ab6': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在设定目标uv的0%
                 'ab7': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-9点,uv控制在0%
                 'ab8': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
                 'ab9': {
                     'update_hours': list(range(7)), 'update_param': 0,
                     'special_update_config': {'special_hours': [0, 1, 7, 8], 'special_gradient': 0.01,
-                                              'special_max_update_step': 42}
+                                              'special_max_update_step': 38}
                 },  # 0-7点,uv控制在0%
             },
         },

+ 1 - 1
flowpool_data_update_with_level.py

@@ -152,7 +152,7 @@ def get_flow_pool_data(app_type, video_info_list):
         # 从流量池获取数据
         videos = get_videos_from_flow_pool(app_type=app_type)
         log_.info(f"app_type: {app_type}")
-        log_.info(f"videos: {videos}")
+        # log_.info(f"videos: {videos}")
         if len(videos) <= 0:
             log_.info('流量池中无需分发的视频')
             return video_info_list