SMOTE, a Gaussian copula, class_weight and plain threshold tuning on a real 2.3% positive dataset, with PR-AUC, recall at 80% precision and a fidelity check.
Explain a tabular model's predictions with SHAP, cross-check with scikit-learn permutation importance, and avoid three traps that make explanations wrong.
Four kinds of data leakage reproduced in scikit-learn with real numbers (0.815 accuracy on random labels), then the fixes and a checklist to run before launch.
Log every prediction to SQLite, then track accuracy as labels arrive, prediction mix, confidence, PSI drift per feature and latency percentiles in Streamlit.
Three agents play one small board game in pure Python: tabular Q-learning with a learning curve, exact minimax, and a local qwen3 LLM. Real win rates and time per move.
A retrain loop that watches labelled batches, catches drift with PSI and KS, retrains on a recent window and promotes only if the challenger wins.