|
|
@@ -1200,14 +1200,14 @@ def predict_data_simple(df_input, group_route_str, output_dir, predict_dir=".",
|
|
|
).round(4)
|
|
|
|
|
|
# 综合评分阈值:大于阈值的都认为值得投放
|
|
|
- target_score_threshold = 0.8
|
|
|
+ target_score_threshold = 0.7
|
|
|
# df_min_hours['target_score_threshold'] = target_score_threshold
|
|
|
df_min_hours['is_good_target'] = (df_min_hours['target_score'] >= target_score_threshold).astype(int)
|
|
|
|
|
|
print(f">>> 包络线+降价潜力评分完成")
|
|
|
del df_hist, df_future, df_envelope_all, df_envelope_agg, df_top, df_drop_freq, df_rise_freq
|
|
|
|
|
|
- df_min_hours = df_min_hours[df_min_hours['is_good_target'] == 1].reset_index(drop=True) # 保留值得投放的
|
|
|
+ df_min_hours = df_min_hours[(df_min_hours['is_good_target'] == 1) & (df_min_hours['seats_remaining'] >= 5)].reset_index(drop=True) # 保留值得投放的
|
|
|
|
|
|
# =====================================================================
|
|
|
|