├── .DS_Store ├── .dockerignore ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .gradio └── flagged │ └── dataset1.csv ├── CLAUDE.md ├── README.md ├── dockerfile ├── notebooks └── EDA.ipynb ├── requirements.txt ├── scripts ├── prepare_processed_data.py ├── run_pipeline.py ├── test_fastapi.py ├── test_pipeline_phase1_data_features.py └── test_pipeline_phase2_modeling.py └── src ├── app ├── app.py └── main.py ├── data ├── load_data.py └── preprocess.py ├── features └── build_features.py ├── models ├── evaluate.py ├── train.py └── tune.py ├── serving ├── inference.py └── model │ ├── 2ac205f95a264d49b964ab362fe5f4e6 │ ├── artifacts │ │ ├── feature_columns.txt │ │ └── model │ │ │ ├── MLmodel │ │ │ ├── conda.yaml │ │ │ ├── metadata │ │ │ ├── MLmodel │ │ │ ├── conda.yaml │ │ │ ├── python_env.yaml │ │ │ └── requirements.txt │ │ │ ├── model.pkl │ │ │ ├── python_env.yaml │ │ │ └── requirements.txt │ ├── meta.yaml │ ├── metrics │ │ ├── data_quality_pass │ │ ├── f1 │ │ ├── precision │ │ ├── pred_time │ │ ├── recall │ │ ├── roc_auc │ │ └── train_time │ ├── params │ │ ├── model │ │ ├── test_size │ │ └── threshold │ └── tags │ │ ├── mlflow.log-model.history │ │ ├── mlflow.runName │ │ ├── mlflow.source.git.commit │ │ ├── mlflow.source.name │ │ ├── mlflow.source.type │ │ └── mlflow.user │ └── 3b1a41221fc44548aed629fa42b762e0 │ ├── artifacts │ ├── feature_columns.txt │ ├── model │ │ ├── MLmodel │ │ ├── conda.yaml │ │ ├── metadata │ │ │ ├── MLmodel │ │ │ ├── conda.yaml │ │ │ ├── python_env.yaml │ │ │ └── requirements.txt │ │ ├── model.pkl │ │ ├── python_env.yaml │ │ └── requirements.txt │ └── preprocessing.pkl │ ├── meta.yaml │ ├── metrics │ ├── data_quality_pass │ ├── f1 │ ├── precision │ ├── pred_time │ ├── recall │ ├── roc_auc │ └── train_time │ ├── params │ ├── model │ ├── test_size │ └── threshold │ └── tags │ ├── mlflow.log-model.history │ ├── mlflow.runName │ ├── mlflow.source.git.commit │ ├── mlflow.source.name │ ├── mlflow.source.type │ └── mlflow.user └── utils ├── utils.py └── validate_data.py /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/.DS_Store -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | data/ 2 | notebooks/ 3 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/.gitignore -------------------------------------------------------------------------------- /.gradio/flagged/dataset1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/.gradio/flagged/dataset1.csv -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/README.md -------------------------------------------------------------------------------- /dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/dockerfile -------------------------------------------------------------------------------- /notebooks/EDA.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/notebooks/EDA.ipynb -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/prepare_processed_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/scripts/prepare_processed_data.py -------------------------------------------------------------------------------- /scripts/run_pipeline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/scripts/run_pipeline.py -------------------------------------------------------------------------------- /scripts/test_fastapi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/scripts/test_fastapi.py -------------------------------------------------------------------------------- /scripts/test_pipeline_phase1_data_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/scripts/test_pipeline_phase1_data_features.py -------------------------------------------------------------------------------- /scripts/test_pipeline_phase2_modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/scripts/test_pipeline_phase2_modeling.py -------------------------------------------------------------------------------- /src/app/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/app/app.py -------------------------------------------------------------------------------- /src/app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/app/main.py -------------------------------------------------------------------------------- /src/data/load_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/data/load_data.py -------------------------------------------------------------------------------- /src/data/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/data/preprocess.py -------------------------------------------------------------------------------- /src/features/build_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/features/build_features.py -------------------------------------------------------------------------------- /src/models/evaluate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/models/evaluate.py -------------------------------------------------------------------------------- /src/models/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/models/train.py -------------------------------------------------------------------------------- /src/models/tune.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/models/tune.py -------------------------------------------------------------------------------- /src/serving/inference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/inference.py -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/feature_columns.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/feature_columns.txt -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/MLmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/MLmodel -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/conda.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/conda.yaml -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/MLmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/MLmodel -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/conda.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/conda.yaml -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/python_env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/python_env.yaml -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/metadata/requirements.txt -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/model.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/model.pkl -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/python_env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/python_env.yaml -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/artifacts/model/requirements.txt -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/meta.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/meta.yaml -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/data_quality_pass: -------------------------------------------------------------------------------- 1 | 1754988794734 1.0 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/f1: -------------------------------------------------------------------------------- 1 | 1754988795594 0.614 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/precision: -------------------------------------------------------------------------------- 1 | 1754988795591 0.4904153354632588 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/pred_time: -------------------------------------------------------------------------------- 1 | 1754988795589 0.004180908203125 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/recall: -------------------------------------------------------------------------------- 1 | 1754988795593 0.820855614973262 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/roc_auc: -------------------------------------------------------------------------------- 1 | 1754988795596 0.8367317678059365 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/metrics/train_time: -------------------------------------------------------------------------------- 1 | 1754988795584 0.7719271183013916 0 2 | -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/params/model: -------------------------------------------------------------------------------- 1 | xgboost -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/params/test_size: -------------------------------------------------------------------------------- 1 | 0.2 -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/params/threshold: -------------------------------------------------------------------------------- 1 | 0.35 -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.log-model.history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.log-model.history -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.runName: -------------------------------------------------------------------------------- 1 | redolent-pug-335 -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.source.git.commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.source.git.commit -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.source.name: -------------------------------------------------------------------------------- 1 | scripts/run_pipeline.py -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.source.type: -------------------------------------------------------------------------------- 1 | LOCAL -------------------------------------------------------------------------------- /src/serving/model/2ac205f95a264d49b964ab362fe5f4e6/tags/mlflow.user: -------------------------------------------------------------------------------- 1 | riadanas -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/feature_columns.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/feature_columns.txt -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/MLmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/MLmodel -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/conda.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/conda.yaml -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/MLmodel: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/MLmodel -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/conda.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/conda.yaml -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/python_env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/python_env.yaml -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/metadata/requirements.txt -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/model.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/model.pkl -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/python_env.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/python_env.yaml -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/model/requirements.txt -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/preprocessing.pkl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/artifacts/preprocessing.pkl -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/meta.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/meta.yaml -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/data_quality_pass: -------------------------------------------------------------------------------- 1 | 1755582649441 1.0 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/f1: -------------------------------------------------------------------------------- 1 | 1755582650228 0.614 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/precision: -------------------------------------------------------------------------------- 1 | 1755582650226 0.4904153354632588 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/pred_time: -------------------------------------------------------------------------------- 1 | 1755582650224 0.0044460296630859375 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/recall: -------------------------------------------------------------------------------- 1 | 1755582650227 0.820855614973262 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/roc_auc: -------------------------------------------------------------------------------- 1 | 1755582650230 0.8367317678059365 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/metrics/train_time: -------------------------------------------------------------------------------- 1 | 1755582650218 0.7084879875183105 0 2 | -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/params/model: -------------------------------------------------------------------------------- 1 | xgboost -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/params/test_size: -------------------------------------------------------------------------------- 1 | 0.2 -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/params/threshold: -------------------------------------------------------------------------------- 1 | 0.35 -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.log-model.history: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.log-model.history -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.runName: -------------------------------------------------------------------------------- 1 | wise-smelt-612 -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.source.git.commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.source.git.commit -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.source.name: -------------------------------------------------------------------------------- 1 | scripts/run_pipeline.py -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.source.type: -------------------------------------------------------------------------------- 1 | LOCAL -------------------------------------------------------------------------------- /src/serving/model/3b1a41221fc44548aed629fa42b762e0/tags/mlflow.user: -------------------------------------------------------------------------------- 1 | riadanas -------------------------------------------------------------------------------- /src/utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/utils/utils.py -------------------------------------------------------------------------------- /src/utils/validate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anesriad/Telco-Customer-Churn-ML/HEAD/src/utils/validate_data.py --------------------------------------------------------------------------------