fix(web): count only training events for discrimination and split user-stop from validated range
Three collected events with a reserved holdout were stalling because the discriminator door counted holdout. Public selection_allowed still had snapshot fallbacks, and health only proved the image SHA. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -307,7 +307,9 @@ def score_from_matrix(request: RectificationRequest, built: dict[str, Any]) -> l
|
||||
continue
|
||||
if event["id"] in holdout:
|
||||
continue
|
||||
contribution = built["matrix"][event["id"]][candidate_time]
|
||||
contribution = (built.get("matrix") or {}).get(event["id"], {}).get(candidate_time)
|
||||
if not isinstance(contribution, dict):
|
||||
continue
|
||||
evidence.append({
|
||||
"event_id": event["id"], "domain": event["domain"], "candidate_time": candidate_time,
|
||||
"rule_ids": contribution["rule_ids"], "points": contribution["points"],
|
||||
|
||||
Reference in New Issue
Block a user