Hey all,
I have spent around 15 years working on risk scorecards in fintech and rating agencies. About 10 years, I started working on my own scoring framework as an open-source Python project (AIDflow) from scratch to make runs reproducible and easier to audit (recently published publicly).
To my dev surprise, once the overall pipeline framework got solid, fitting the model itself - Logistic Regression, ElasticNet, XGBoost, etc. - became the easy part. That was a big shift from academia to real-world use cases, since during my PhD, ML and model fitting felt like everything.
A couple of pipeline habits that help a lot when building tabular models:
Check feature stability before training, not only after.
- Anti-pattern: Many workflows fit a model first and check drift on a validation or holdout split later. From my experience that is not the best way to go forward.
- My key finding: Screening features for stability over time (temporal stability) before fitting removes noisy or shifting variables early, instead of patching around drift after training.
Prevent leakage through pipeline structure, not memory.
- Anti-pattern: Fitting encoders, imputers, or scalers before splitting data - or mutating state across steps - quietly leaks information and makes runs hard to repeat.
- My key finding: Moving data through explicit, ordered stages where transforms fit only on training data and stay frozen keeps experiments much cleaner:
Raw -> Clean -> Stable -> Encoded -> ML-Ready -> Trained -> Tested -> Inference Ready
You do not need a PhD to use either pattern; they apply to almost any time-ordered or tabular dataset. Docs are at https://aidflow.aigensys.com .
In the era of AI code taking over, a fun fact worth mentioning: the code was written by hand over the years, with only docstrings cleaned up via an LLM before publishing.
When you build tabular models, where have you run into data leakage or train/test mismatch the most?