Browse Source

Update draw_predict_distribution: change num of bins

fengzhoutian 2 tháng trước cách đây
mục cha
commit
76ee56f8ff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      ad/draw_predict_distribution.py

+ 1 - 1
ad/draw_predict_distribution.py

@@ -52,7 +52,7 @@ def _main(old_predict_path: str, new_predict_path: str, output_path: str):
     old_df = read_predict_file(old_predict_path)
     new_df = read_predict_file(new_predict_path)
 
-    num_bins = 20
+    num_bins = 50
     old_df['p_bin'], _ = pd.qcut(old_df['score'], q=num_bins, duplicates='drop', retbins=True)
     new_df['p_bin'], _ = pd.qcut(new_df['score'], q=num_bins, duplicates='drop', retbins=True)