Spaces:
Sleeping
Sleeping
Commit History
-
Production hardening: real calibration, request limits, logging, unified policy
F15 - Calibration measured against observed outcomes, not coin flips. /continuous-update and /autonomous-cycle computed ECE against np.random.choice([0,1], p=[0.8,0.2]). The verdict was written to calibration_memory and /shadow-learning-status reported it back as the safety gate status, so random numbers became a governance judgement and were then presented as evidence the model was behaving. fetch_matured_calibration_pairs() joins model_predictions to risk_outcomes on (user_id, snapshot_date), keeps only rows whose target_date has passed, and refuses to report anything below 30 matched pairs or on a single class. Verified end to end: 29 real pairs -> ECE 0.1931, recalibration correctly flagged; 0 pairs -> "not enough matured data", nothing invented. F11 - /shadow-learning-status stops reporting literals as telemetry. fgi, both AUCs and transfer_auc were hardcoded and the gate was computed from them. Unmeasured quantities are now null with a stated reason and t…ff54386
-
Deploy financial risk API to Hugging Face
bc308f6