Spaces:
Sleeping
Sleeping
Commit History
-
Deploy 5b66a71: Surface counterparty diagnostics; write the Frigate integration handoff
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@5b66a716a963575f98e8814fb32b3da7ca21568bbc10718 -
Deploy d12ef1c: Return 503 from key verification when the key store is unreachable
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@d12ef1ca313b1b87eb85c20f63ef903376567532546d4ad -
Deploy 193667e: Accept RFC-3339 timestamps, merge merchant_name, return 503 on datastore outage
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@193667e949405e5237093f50a452911b9aa980be7eddf0d
-
Deploy 3429bb9: Read the counterparty, not just the amount: provider-level transaction analysis
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@3429bb97aa16908e152edb4ad50e155130981435b025087 -
Deploy 820ac93: Hash stored API keys; migrate existing ones in place
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@820ac93f0036ba7be9c800b0a2ead74ccaa071d6f38e611 -
Deploy a06f994: Detect other lenders in the transaction feed; measure what "looks healthy" is worth
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@a06f9940c2d02013ba752e60cdd55a7ec00a6b75d13dd0c -
Deploy ba06f48: Add Data Fusion "Default": real transactions with real credit outcomes, and it does not support the earlier optimism
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@ba06f48a93a71bf094081a9791e2354f7f7555d4e0ca18d -
Deploy 257b421: Add GiveMeSomeCredit: 150,000 real borrowers, 10,026 real distress events
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@257b4210b7a7dc06d4f6cb76cc60210f635c3e5a3310f41
-
Deploy 1a8c5d7: Retrain on the 11 validated features; ranking on real data is no longer inverted
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@1a8c5d7f0698a05cc352a568e4829728f1e0fb27c1d6ce1 -
Deploy b93d344: Add smoke tests, pin dependencies, align the container with the pickles
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@b93d3441ed4665f76516a6951479bb40d5c66ca2fdd922a -
Deploy a8d0917: Add a 12-month delinquency ladder, validated on 6,636 real defaults
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@a8d0917d8cd0d3184da761d86968ef06fefe50c9eb0b2ae -
Deploy 5b6df4f: Add UCI Taiwan benchmark: 30,000 clients, 6,636 real defaults
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@5b6df4f5fd41b3ea2b02eb5ca87e01d435a99e8b769f3ed -
Deploy 1ca0ab2: Real-outcome scorecard: 0.854 AUC, 6.2x decile lift, calibrated
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@1ca0ab2f46933309aa8920bd9f3d53fac4a33a3b71fb81a -
Deploy 58510e6: Add balance-trajectory features: +0.16 AUC on real adjudicated outcomes
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@58510e6e7da0c0fa7e2a6d3c9befda9838d63077b9abc98 -
Deploy fcfc762: Validate against real loan outcomes; the synthetic metrics did not survive
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@fcfc7627cfa08fc36dc35a1527e81e54bcd9d234cbbd555
-
Deploy 07c02ae: Make the model defensible: state transitions, monotonic constraints, log-odds penalties
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@07c02ae70f94bb496cf6a029decd2e3ccd65a57d5975f7a -
Deploy ca5c7a6: Ignore SQLite WAL/SHM sidecars
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@ca5c7a6f969440dd7bdd19247cc1962bbd63ae7355cb51f -
Deploy 0aa0350: Promote UK-only model trained on a realistic corpus
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@0aa035078729d0705c1da79c89a1f799325cfbd4a22e6c9 -
Deploy 9bc6d41: Fix two silent failures: numpy id binding and NaN OOD threshold
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@9bc6d41278f000607f93f7be197f429722098f5a22cc1d6 -
Deploy 145e7d4: Run without a database when only scoring is needed
github-actions[bot]Synced from Octavio-Loffaro/frig-scoring@145e7d4bea25c90e12f27eb24099c9913b15239efa24328 -
Fix default label to use the worst episode, and consolidate at snapshot time
F13 - default_90d read consecutive_negative_days after the 90-day loop, which holds the run length on day 90 rather than the longest run in the window. Measured on 1100 snapshots: positives 11 -> 19. F7 - Snapshot generation now applies the same multi-account consolidation that scoring applies, so the model is trained on the distribution it is served. Takes effect on the next snapshot regeneration. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>ca7ca11 -
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
-
Add stateless payload scoring: POST /score
The service was a system of record, not a scoring API: /risk-score took only a user_id and issued nine reads against users, accounts, transactions and feature_snapshots. Scoring anyone required their financial data to already live in our database, which is the wrong custody model for a tool an application calls with its own users' data. POST /score accepts {profile, accounts, transactions} and returns the full risk profile. Verified to open zero database connections. Incomplete input is treated as the normal case, not an error: - Every field is optional. The engine falls back through the calibrated model, the thin-file path and the cold-start heuristic on what is usable, and reports the outcome in `coverage` (signals present, history days, sufficiency tier). - Malformed input is separated from missing input. Unrecognised category labels, an inverted amount sign, an unknown market and out-of-range values are returned as `warnings` and the affected signal is treated as absent r…096fb77 -
Fix scoring engine: restore ML path, remove synthetic ensemble, secure key issuance
Brings the Space up to date with the audit fixes. Availability: - sqlite3 shim re-exports the real Row/Connection/Cursor. The stub Row broke the SQLite path outright and the missing Connection broke pandas.read_sql_query at 17 call sites, which silently dropped every request to the baseline heuristic. - init_db() no longer aborts module import, so a database outage returns 503 DEGRADED from /health instead of crash-looping uvicorn. - Unknown user_id returns 404 rather than scoring default features and leaking a foreign-key error; all scoring connections are wrapped in try/finally with rollback, so one failed request no longer leaves a write lock behind. Scoring correctness: - Snapshot date defaults to the user's own latest transaction rather than the global maximum, which had left 98% of users on the cold-start heuristic. Adds a data_freshness block reporting snapshot age. - Removes the synthetic ensemble that added np.random.normal() noise to the XGBoost output four …992fce0
-
Support NumPy types in PostgreSQL adapter
0e5d04f -
Optimize database queries to batch inserts/updates and resolve API timeouts
75fce80
-
Remove temporary diagnostic endpoint
c6b4670 -
Fix baseline stress probability scaling divisor bug
338440c -
Add temporary diagnostic endpoint to api.py
42797ed -
Fix PostgreSQL boolean comparison mismatch in sqlite3 wrapper
783f077
-
Update health endpoint to test database connection directly
ffd2cc6 -
Expose executescript on Connection wrapper
85c28e1 -
Ignore SQLite PRAGMA statements in Postgres mode
5ba161a -
Add pre-trained ML models and update ignore rules
5a7f41b -
Deploy financial risk API to Hugging Face
bc308f6 -
initial commit
Verified signaturefd2d6eb