Spaces:
Paused
Paused
Update ml_engine/data_manager.py
Browse files
ml_engine/data_manager.py
CHANGED
|
@@ -121,7 +121,7 @@ class DataManager:
|
|
| 121 |
|
| 122 |
# نأخذ أفضل 50 مرشحاً فقط لفحص دفتر الطلبات لتجنب حظر API
|
| 123 |
semi_final_list.sort(key=lambda x: x['l1_sort_score'], reverse=True)
|
| 124 |
-
candidates_for_depth = semi_final_list[:
|
| 125 |
|
| 126 |
for item in candidates_for_depth:
|
| 127 |
# إذا كانت تجميع (Squeeze) أو قاع، نفحص هل هناك دعم حقيقي في الأسفل؟
|
|
@@ -153,7 +153,7 @@ class DataManager:
|
|
| 153 |
|
| 154 |
# 5. الترتيب النهائي والإرجاع
|
| 155 |
final_list.sort(key=lambda x: x['l1_sort_score'], reverse=True)
|
| 156 |
-
selection = final_list[:
|
| 157 |
|
| 158 |
print(f"✅ [Layer 1] Passed {len(selection)} candidates (With Depth Verification).")
|
| 159 |
return selection
|
|
|
|
| 121 |
|
| 122 |
# نأخذ أفضل 50 مرشحاً فقط لفحص دفتر الطلبات لتجنب حظر API
|
| 123 |
semi_final_list.sort(key=lambda x: x['l1_sort_score'], reverse=True)
|
| 124 |
+
candidates_for_depth = semi_final_list[:150]
|
| 125 |
|
| 126 |
for item in candidates_for_depth:
|
| 127 |
# إذا كانت تجميع (Squeeze) أو قاع، نفحص هل هناك دعم حقيقي في الأسفل؟
|
|
|
|
| 153 |
|
| 154 |
# 5. الترتيب النهائي والإرجاع
|
| 155 |
final_list.sort(key=lambda x: x['l1_sort_score'], reverse=True)
|
| 156 |
+
selection = final_list[:150]
|
| 157 |
|
| 158 |
print(f"✅ [Layer 1] Passed {len(selection)} candidates (With Depth Verification).")
|
| 159 |
return selection
|