|
@@ -60,6 +60,7 @@ def update_threshold(threshold_record_old, threshold_record_new):
|
|
"""更新阈值"""
|
|
"""更新阈值"""
|
|
ad_mid_group_list = [group for class_key, group_list in config_.AD_MID_GROUP.items()
|
|
ad_mid_group_list = [group for class_key, group_list in config_.AD_MID_GROUP.items()
|
|
for group in group_list]
|
|
for group in group_list]
|
|
|
|
+ ad_mid_group_list.append("mean_group")
|
|
ad_mid_group_list = list(set(ad_mid_group_list))
|
|
ad_mid_group_list = list(set(ad_mid_group_list))
|
|
for ad_abtest_tag, threshold_param_new in threshold_record_new.items():
|
|
for ad_abtest_tag, threshold_param_new in threshold_record_new.items():
|
|
threshold_param_old = threshold_record_old.get(ad_abtest_tag)
|
|
threshold_param_old = threshold_record_old.get(ad_abtest_tag)
|