Calibrated Predictive Modeling • Multi-Cohort Temporal Validation • Cost-Sensitive Profit Optimization
High Value at Risk: Immediate personal phone outreach or dedicated account rep call. Offer customized renewal packages without blanket discount codes.
| Model Architecture | PR-AUC | ROC-AUC | Brier Score | Status |
|---|---|---|---|---|
| ★ Logistic Regression (Calibrated) | 0.8185 | 0.7721 | 0.1786 | Selected (Production) |
| Random Forest Classifier | 0.8089 | 0.7663 | 0.1915 | Benchmark |
| LightGBM Classifier | 0.7949 | 0.7445 | 0.1948 | Benchmark |
| XGBoost Classifier | 0.7939 | 0.7456 | 0.1913 | Benchmark |
| CatBoost Classifier | 0.7910 | 0.7390 | 0.1938 | Benchmark |
import joblib
from huggingface_hub import hf_hub_download
# Download production-ready calibrated models
churn_model_path = hf_hub_download(repo_id="Kicaulah/ecommerce-churn-ltv-models", filename="churn_model.joblib")
ltv_model_path = hf_hub_download(repo_id="Kicaulah/ecommerce-churn-ltv-models", filename="ltv_model.joblib")
# Load scikit-learn pipelines
churn_pipeline = joblib.load(churn_model_path)
ltv_pipeline = joblib.load(ltv_model_path)
# Predict churn risk & 180-day LTV
# p_churn = churn_pipeline.predict_proba(customer_df)[:, 1]
# y_ltv = ltv_pipeline.predict(customer_df)
print("Models loaded successfully from Hugging Face Hub!")
UCI Online Retail II dataset (2009–2011). 1.04M raw records cleaned to 797,815 high-fidelity transactions across 5,939 salted SHA-256 customer hashes.
Licensed under Creative Commons Attribution 4.0 (CC BY 4.0). Salted hashing eliminates re-identification. Zero PII stored or leaked.
Official Kaggle Model Hub integration: simonmarc/ecommerce-churn-ltv-models.