VladGeekPro commited on
Commit
58d658a
·
1 Parent(s): b5b6f49

AgainCommitWithThreshold

Browse files
Files changed (1) hide show
  1. expense_predictor.py +1 -1
expense_predictor.py CHANGED
@@ -189,7 +189,7 @@ def predict_expenses(expenses: list[dict], target_user_id, debug: bool = False)
189
  pct = count / total_records * 100
190
  print(f"[PREDICT] supplier_id={supplier_id} -> {count} records ({pct:.1f}%)")
191
 
192
- # Select suppliers whose frequency is strictly greater than 50% of the top supplier frequency.
193
  max_freq = max(supplier_freq.values()) if supplier_freq else 0
194
  freq_threshold = 0.5 * max_freq
195
  candidate_items = [
 
189
  pct = count / total_records * 100
190
  print(f"[PREDICT] supplier_id={supplier_id} -> {count} records ({pct:.1f}%)")
191
 
192
+ # Select suppliers whose frequency is strictly greater than 50% of the top supplier frequency
193
  max_freq = max(supplier_freq.values()) if supplier_freq else 0
194
  freq_threshold = 0.5 * max_freq
195
  candidate_items = [