Production-style MLOps pipeline for credit risk prediction, model serving, drift detection and observability.
This project simulates an end-to-end machine learning system in a production environment, covering the full lifecycle from model training to deployment and monitoring.
It includes:
- Predictive model for credit behavior
- FastAPI model serving API
- Dockerized deployment
- Data drift monitoring framework
- Interactive Streamlit observability dashboard
- Deployment in Render (API + Monitoring Console)
The project was designed following MLOps principles: reproducibility, monitoring, model governance and operational visibility.
Data → Feature Engineering → Model Training → API Inference
↓
Drift Monitoring Layer
↓
Monitoring Dashboard
- Feature engineering pipeline
- Classification model for
Pago_atiempo - Serialized production pipeline with Joblib
Algorithms explored:
- Logistic Regression
- Gradient Boosting approaches
- Risk-oriented evaluation metrics
Deployed API:
https://mlops-pipeline-api.onrender.com
Endpoints:
GET /POST /predictReturns:
- predicted class
- probability score
- model version
- threshold metadata
Example response:
{
"predictions":[
{
"proba_pago_atiempo":0.983,
"pred_pago_atiempo":1
}
]
}Swagger Docs:
https://mlops-pipeline-api.onrender.com/docsLive dashboard:
https://mlops-pipeline-dashboard.onrender.com
Monitoring includes:
Numerical drift:
- PSI
- Kolmogorov-Smirnov
- Jensen-Shannon Distance
Categorical drift:
- Chi-Square Drift Detection
Dashboard modules:
- Executive Risk Overview
- Drift Incident Panel
- Feature Diagnostics
- Historical Drift Monitoring
- Risk Scoring Matrix
- Downloadable Monitoring Reports
Detected incident:
- Feature:
tendencia_ingresos - Status: DRIFT
- Automatic recommendation: Review upstream category mapping
Simulates production monitoring workflows.
Python
Pandas
Scikit-learn
FastAPI
Streamlit
Docker
Render
Joblib
Plotly
mlops_pipeline/
│
├── data/
├── models/
├── notebooks/
├── reports/
├── src/
│ ├── app.py
│ ├── model_deploy.py
│ ├── model_monitoring.py
│ └── ft_engineering.py
│
├── Dockerfile
├── docker-compose.yml
└── requirements.txtClone repository:
git clone https://github.com/Florenciasc/mlops_pipeline.git
cd mlops_pipelineInstall:
pip install -r requirements.txtRun API:
uvicorn src.model_deploy:app --reloadRun monitoring dashboard:
streamlit run src/app.py✔ Model deployment
✔ Batch inference API
✔ Data drift detection
✔ Model observability
✔ Incident-style monitoring
✔ Dockerized deployment
✔ Cloud deployment
✔ Monitoring dashboard
- Model performance monitoring (prediction drift)
- Automated alerting
- CI/CD pipeline integration
- Retraining triggers
- Prometheus/Grafana integration
Florencia Sosa Comisso
Business & Data Analyst | MLOps | BI
LinkedIn: https://linkedin.com/in/florencia-sosa-comisso
Portfolio: https://florenciasc.github.io/