How shubham-s151/end-to-end-mlops-pipeline works
This repository is an end-to-end ML project focused on credit-card fraud prediction, with telecom churn also represented in its analysis materials. The documented user workflow is dataset exploration and ingestion through validation, feature preparation, model training/evaluation, then Streamlit single-record or CSV predictions. The training pipeline assembles feature engineering, preprocessing, and a classifier; the Streamlit app loads a serialized pipeline. EDA, tracking, FastAPI, and monitoring are additional capabilities, but several MLOps modules are explicitly in progress or placeholders. Edges use README-level workflow evidence where source wiring was not shown.
Main entry points: app.py Streamlit prediction app · training_pipeline_v1.py Model training · pipeline.pkl Serialized model pipeline · Data.zip Fraud datasets
Components 19
Data analysis
- Exploratory analysis
src/data_science/data_inspection.py - Descriptive analysis
src/data_science/descriptive_analysis.py - Data cleaning
src/data_science/data_cleaning.py - Inferential analysis
src/data_science/inferential_analysis.py - Fraud EDA dashboard
streamlit_app/pages/1_User_Dashboard.py
Model workflow
- Data ingestion
src/ml_engineering/data_ingestion.py - Data validation
src/common/data_validation.py - Feature engineering
src/data_science/feature_engineering.py - Pipeline preprocessing
pipeline/complete_pipeline_v1.py - Model training
pipeline/training_pipeline_v1.py - Model evaluation
src/ml_engineering/model_evaluation.py
Inference application
- Serialized model pipeline
streamlit_app/pipeline.pkl - Streamlit prediction app
streamlit_app/app.py
MLOps extensions
- Experiment tracking
src/ml_engineering/mlflow_tracking.py - FastAPI service scaffold
api/main.py - FastAPI deployment scaffold
src/ml_engineering/deployment_fastapi.py - Drift monitoring
src/ml_engineering/monitoring_evidently.py
Other components
- User
- Fraud datasets
data/raw_for_webuse/Data.zip
Connections 17
- User → Streamlit prediction app: submits input
streamlit_app/app.py - Streamlit prediction app → Serialized model pipeline: loads model
streamlit_app/app.py - Streamlit prediction app → Serialized model pipeline: predicts with
streamlit_app/app.py - Fraud datasets → Exploratory analysis: explored in
README.md - Fraud datasets → Data ingestion: loads data
README.md - Data ingestion → Data validation: validated by
README.md - Data validation → Feature engineering: prepared for
README.md - Feature engineering → Pipeline preprocessing: feeds
README.md - Model training → Pipeline preprocessing: builds pipeline
pipeline/training_pipeline_v1.py - Model training → Serialized model pipeline: saves artifact
README.md - Model training → Model evaluation: evaluated by
README.md - Model evaluation → Streamlit prediction app: serves selected model
README.md - User → Fraud EDA dashboard: views analysis
streamlit_app/pages/1_User_Dashboard.py - Model training → Experiment tracking: tracks experiments
- User → FastAPI service scaffold: calls endpoints
- FastAPI service scaffold → FastAPI deployment scaffold: deployment integration
- Streamlit prediction app → Drift monitoring: monitoring integration
README.md