{"id":21625610,"url":"https://github.com/eljandoubi/predict-customer-churn-with-clean-code","last_synced_at":"2026-04-16T10:32:31.614Z","repository":{"id":191885634,"uuid":"685129170","full_name":"eljandoubi/Predict-Customer-Churn-with-Clean-Code","owner":"eljandoubi","description":"Clean Code Principles","archived":false,"fork":false,"pushed_at":"2023-08-31T14:57:41.000Z","size":3893,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T22:35:33.199Z","etag":null,"topics":["autopep8","logging","numpy","pandas","pylint","pytest","scikit-learn"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eljandoubi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-30T15:20:28.000Z","updated_at":"2023-08-31T14:59:44.000Z","dependencies_parsed_at":"2023-09-01T10:46:01.616Z","dependency_job_id":null,"html_url":"https://github.com/eljandoubi/Predict-Customer-Churn-with-Clean-Code","commit_stats":null,"previous_names":["eljandoubi/predict-customer-churn-with-clean-code"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FPredict-Customer-Churn-with-Clean-Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FPredict-Customer-Churn-with-Clean-Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FPredict-Customer-Churn-with-Clean-Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eljandoubi%2FPredict-Customer-Churn-with-Clean-Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eljandoubi","download_url":"https://codeload.github.com/eljandoubi/Predict-Customer-Churn-with-Clean-Code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244297908,"owners_count":20430347,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autopep8","logging","numpy","pandas","pylint","pytest","scikit-learn"],"created_at":"2024-11-25T01:09:49.795Z","updated_at":"2026-04-16T10:32:31.538Z","avatar_url":"https://github.com/eljandoubi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Predict Customer Churn with Clean Code\n\n## Description\n\nThis project is about Clean Code Principles. \nThe problem is to predict credit card customers that are most likely to churn using clean code best practices.\n\n## Prerequisites\n\nPython and Jupyter Notebook are required.\nAlso a Linux environment may be needed within windows through WSL.\n\n## Dependencies\n- sklearn\n- numpy\n- pandas\n- matplotlib\n- seaborn\n- pytest\n\n## Installation\n\nUse the package manager [conda](https://docs.conda.io/en/latest/) to install the dependencies from the ```conda.yml```\n\n```bash\nconda env create -f conda.yml\n```\n\n## Usage\n\nThe main script to run using the following command.\n```bash\npython churn_library.py\n``` \nwhich will generate\n- EDA plots in the directory ```./images/EDA/```\n- Model metrics plots in the directory ```./images/results/```\n- Saved model pickle files in the directory ```./models/```\n- A log file ```./log/churn_library.log``` \n\nThe tests script can be used with the following command which will generate a log file ```./churn_script_logging_and_tests.log``` \n```bash\npython churn_script_logging_and_tests.py\n```\n\n## License\nDistributed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt) License. See ```LICENSE``` for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feljandoubi%2Fpredict-customer-churn-with-clean-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feljandoubi%2Fpredict-customer-churn-with-clean-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feljandoubi%2Fpredict-customer-churn-with-clean-code/lists"}