{"id":26060455,"url":"https://github.com/pramodyasahan/binary-classifier","last_synced_at":"2026-05-03T17:32:43.960Z","repository":{"id":215804629,"uuid":"739818708","full_name":"pramodyasahan/binary-classifier","owner":"pramodyasahan","description":"This repository houses the code for a machine learning model designed to predict customer churn. The model is built using Support Vector Machine (SVM) from the scikit-learn library and incorporates preprocessing, pipeline, and grid search techniques for optimal performance.","archived":false,"fork":false,"pushed_at":"2024-01-06T16:47:25.000Z","size":7111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T01:40:32.312Z","etag":null,"topics":["numpy","pandas","scikit-learn"],"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/pramodyasahan.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}},"created_at":"2024-01-06T16:34:18.000Z","updated_at":"2024-01-06T16:39:49.000Z","dependencies_parsed_at":"2024-01-06T17:50:47.277Z","dependency_job_id":null,"html_url":"https://github.com/pramodyasahan/binary-classifier","commit_stats":null,"previous_names":["pramodyasahan/binary-classifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pramodyasahan/binary-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pramodyasahan%2Fbinary-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pramodyasahan%2Fbinary-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pramodyasahan%2Fbinary-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pramodyasahan%2Fbinary-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pramodyasahan","download_url":"https://codeload.github.com/pramodyasahan/binary-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pramodyasahan%2Fbinary-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32578578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["numpy","pandas","scikit-learn"],"created_at":"2025-03-08T14:08:22.015Z","updated_at":"2026-05-03T17:32:43.938Z","avatar_url":"https://github.com/pramodyasahan.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Customer Churn Prediction Model\n\n## Overview\nThis repository houses the code for a machine learning model designed to predict customer churn. The model is built using Support Vector Machine (SVM) from the scikit-learn library and incorporates preprocessing, pipeline, and grid search techniques for optimal performance.\n\n## Data\nThe model utilizes two datasets for training and testing:\n- `train 2.csv`: Contains training data with customer features and churn status.\n- `test 2.csv`: Contains testing data with customer features.\n\n## Features\nThe datasets comprise both numerical and categorical customer-related features. These features undergo preprocessing to make them suitable for feeding into the model.\n\n## Preprocessing\nKey preprocessing steps include:\n- Scaling numerical features using StandardScaler.\n- Encoding categorical features using OneHotEncoder.\n- Removal of non-predictive features like 'id', 'CustomerId', and 'Surname'.\n\n## Model Training\nThe SVM model is trained on preprocessed data. Key aspects of the model training include:\n- Utilizing the SVC (Support Vector Classification) algorithm.\n- Employing GridSearchCV for hyperparameter tuning.\n\n## Hyperparameters\nThe following hyperparameters are considered in the grid search:\n- 'C': [0.1, 1] (Regularization parameter)\n- 'gamma': [1, 0.1] (Kernel coefficient)\n- 'kernel': ['rbf', 'poly', 'sigmoid'] (Specifies the kernel type)\n\n## Usage\nTo use the model:\n1. Load the training and testing datasets.\n2. Preprocess the datasets by scaling numerical features and encoding categorical features.\n3. Train the SVC model using the training data.\n4. Predict churn status for the test data.\n5. Export the predictions to 'predictions.csv'.\n\n## Dependencies\n- numpy\n- pandas\n- scikit-learn\n\n## Note\nThis code serves as a basic structure for customer churn prediction and can be further optimized for specific use-cases and datasets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpramodyasahan%2Fbinary-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpramodyasahan%2Fbinary-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpramodyasahan%2Fbinary-classifier/lists"}