{"id":22445458,"url":"https://github.com/anas436/customer-churn-prediction-using-logistic-regression-with-python","last_synced_at":"2026-04-11T17:45:04.235Z","repository":{"id":110394410,"uuid":"532910533","full_name":"Anas436/Customer-Churn-Prediction-using-Logistic-Regression-with-Python","owner":"Anas436","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-05T13:23:58.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-13T21:42:48.000Z","etag":null,"topics":["jupyterlab","linear-models","logistic-regression","matplotlib","metrics","numpy","pandas","pylab","python3","scikit-learn","scipy","sklearn"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anas436.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-05T13:21:25.000Z","updated_at":"2022-09-05T13:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"18788417-2fe0-4f9e-90a0-6efbbaea08ec","html_url":"https://github.com/Anas436/Customer-Churn-Prediction-using-Logistic-Regression-with-Python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anas436/Customer-Churn-Prediction-using-Logistic-Regression-with-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FCustomer-Churn-Prediction-using-Logistic-Regression-with-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FCustomer-Churn-Prediction-using-Logistic-Regression-with-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FCustomer-Churn-Prediction-using-Logistic-Regression-with-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FCustomer-Churn-Prediction-using-Logistic-Regression-with-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anas436","download_url":"https://codeload.github.com/Anas436/Customer-Churn-Prediction-using-Logistic-Regression-with-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anas436%2FCustomer-Churn-Prediction-using-Logistic-Regression-with-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31689762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["jupyterlab","linear-models","logistic-regression","matplotlib","metrics","numpy","pandas","pylab","python3","scikit-learn","scipy","sklearn"],"created_at":"2024-12-06T03:14:30.986Z","updated_at":"2026-04-11T17:45:04.197Z","avatar_url":"https://github.com/Anas436.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customer-Churn-Prediction-using-Logistic-Regression-with-Python\n\n\n\n## Objectives\n\nAfter completing this lab you will be able to:\n\n*   Use scikit Logistic Regression to classify\n*   Understand confusion matrix\n\n\nIn this notebook, you will learn Logistic Regression, and then, you'll create a model for a telecommunication company, to predict when its customers will leave for a competitor, so that they can take some action to retain the customers.\n\n\n\u003ch1\u003eTable of contents\u003c/h1\u003e\n\n\u003cdiv class=\"alert alert-block alert-info\" style=\"margin-top: 20px\"\u003e\n    \u003col\u003e\n        \u003cli\u003e\u003ca href=\"https://#about_dataset\"\u003eAbout the dataset\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"https://#preprocessing\"\u003eData pre-processing and selection\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"https://#modeling\"\u003eModeling (Logistic Regression with Scikit-learn)\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"https://#evaluation\"\u003eEvaluation\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"https://#practice\"\u003ePractice\u003c/a\u003e\u003c/li\u003e\n    \u003c/ol\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003chr\u003e\n\n\n\u003ch2 id=\"about_dataset\"\u003eAbout the dataset\u003c/h2\u003e\nWe will use a telecommunications dataset for predicting customer churn. This is a historical customer dataset where each row represents one customer. The data is relatively easy to understand, and you may uncover insights you can use immediately. Typically it is less expensive to keep customers than acquire new ones, so the focus of this analysis is to predict the customers who will stay with the company. \n\nThis data set provides information to help you predict what behavior will help you to retain customers. You can analyze all relevant customer data and develop focused customer retention programs.\n\nThe dataset includes information about:\n\n*   Customers who left within the last month – the column is called Churn\n*   Services that each customer has signed up for – phone, multiple lines, internet, online security, online backup, device protection, tech support, and streaming TV and movies\n*   Customer account information – how long they had been a customer, contract, payment method, paperless billing, monthly charges, and total charges\n*   Demographic info about customers – gender, age range, and if they have partners and dependents\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas436%2Fcustomer-churn-prediction-using-logistic-regression-with-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanas436%2Fcustomer-churn-prediction-using-logistic-regression-with-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanas436%2Fcustomer-churn-prediction-using-logistic-regression-with-python/lists"}