r/coolgithubprojects • • 28m ago

AIDflow: a free, open-source credit-scorecard engine — the kind of tool my old company paid a $100K/year licence for

Post image

I built a credit-scorecard framework from scratch over ~10 years — by hand, no AI in the code (except the docstrings before I published; everything else is my brain-hand route).

Why: I spent close to 15 years in fintech scoring and I never liked the expensive black-box tools everyone got forced onto — the kind where my old company was paying a $100K/year licence just for the privilege of using one. So I built the one I'd actually wanted.

The part that makes it useful (and the part most scorecards quietly get wrong): a scorecard isn't "fit a model," it's a locked chain of states, each one immutable and unable to run until its prerequisite is registered:

Raw → Clean → Stable → Encoded → ML-Ready → Trained → Tested → Inference-Ready

Two things that surprised me:
• Stability is checked before training, not after. The instinct is train → measure drift on the holdout → re-tune. I flip it: screen for temporal instability first, drop the features that won't hold across time, then fit. You train on a base that's already stable instead of chasing drift after the fact.
• No-leakage is structure, not discipline. A transform fitted on the whole frame quietly eats future + test info. Once each state is locked, encoders are fit on train, frozen, applied identically at inference — you become unable to leak, not just careful.

Concrete:
• Swap the model (LogReg / ElasticNet / XGBoost) with one parameter — the structure holds.
• Runs on a laptop (Arrow/Parquet offload for data that won't fit in RAM) or scales to a cluster (Ray) with no rewrite.
• Exports a self-contained scoring artifact — no framework needed at inference time.
• Full lineage + SHAP + benchmarks travel with the artifact, for the reviewer who'll ask.

Free and open source (FSL-Apache): https://github.com/aigensys-labs/aidflow

If you've ever stared at a "works in backtest, dies in production" scorecard and wondered where the structure went — this is the thing I kept wishing existed. Sharper critique, the better.

0 Upvotes

0 comments sorted by