{"id":23843529,"url":"https://github.com/gurpreet0022/cardio-tree-classifier","last_synced_at":"2025-07-28T14:09:30.630Z","repository":{"id":262597818,"uuid":"887757528","full_name":"Gurpreet0022/Cardio-Tree-Classifier","owner":"Gurpreet0022","description":"Predicting Heart Disease using Decision Tree ","archived":false,"fork":false,"pushed_at":"2024-11-13T08:48:25.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T06:12:22.653Z","etag":null,"topics":["decision-tree-classifier","learning-by-doing","machine-learning","machine-learning-algorithms","random-forest-classifier"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Gurpreet0022.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":"2024-11-13T08:28:25.000Z","updated_at":"2024-11-17T17:36:05.000Z","dependencies_parsed_at":"2024-11-13T09:42:51.395Z","dependency_job_id":null,"html_url":"https://github.com/Gurpreet0022/Cardio-Tree-Classifier","commit_stats":null,"previous_names":["gurpreet0022/cardio-tree-classifier"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gurpreet0022/Cardio-Tree-Classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpreet0022%2FCardio-Tree-Classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpreet0022%2FCardio-Tree-Classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpreet0022%2FCardio-Tree-Classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpreet0022%2FCardio-Tree-Classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gurpreet0022","download_url":"https://codeload.github.com/Gurpreet0022/Cardio-Tree-Classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gurpreet0022%2FCardio-Tree-Classifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267527835,"owners_count":24102019,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["decision-tree-classifier","learning-by-doing","machine-learning","machine-learning-algorithms","random-forest-classifier"],"created_at":"2025-01-02T19:48:14.075Z","updated_at":"2025-07-28T14:09:30.598Z","avatar_url":"https://github.com/Gurpreet0022.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Cardio Tree Classifier\n\nThis project, **Cardio Tree Classifier**, is designed to classify the likelihood of heart disease based on various health indicators. It uses a decision tree classifier to analyze a dataset of health information to make predictions on heart disease outcomes.\n\n## Table of Contents\n- [Project Overview](#project-overview)\n- [Dataset](#dataset)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Model Training](#model-training)\n- [Evaluation](#evaluation)\n\n## Project Overview\nThe **Cardio Tree Classifier** uses machine learning techniques to analyze factors associated with heart disease. This project applies data preprocessing techniques such as label encoding and one-hot encoding and builds a decision tree classifier model for prediction.\n\n## Dataset\nThe dataset used for this project is `heartDisease_2020_sampling.csv`, which contains various health indicators. These include:\n- Heart disease diagnosis\n- General health status\n- Smoking and drinking habits\n- Physical activity level\n- Age category\n- Race and gender information\n\n## Installation\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/Cardio-Tree-Classifier.git\n   ```\n2. Navigate to the project directory:\n   ```bash\n   cd Cardio-Tree-Classifier\n   ```\n3. Install the required dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n## Usage\n1. Load and preprocess the dataset:\n   The code reads `heartDisease_2020_sampling.csv` and preprocesses it by label encoding categorical columns and one-hot encoding race information.\n2. Train and evaluate the model:\n   - The decision tree classifier is trained on the processed data.\n   - Run the script to view sample data and training results.\n3. Run the main script:\n   ```bash\n   python main.py\n   ```\n\n## Model Training\nThe model is trained using a decision tree classifier, with the following steps:\n- **Data Cleaning**: Label encoding and one-hot encoding of categorical variables.\n- **Model Selection**: Decision Tree Classifier.\n- **Training and Prediction**: The model is trained on the preprocessed dataset.\n\n## Evaluation\nThe model's performance is evaluated using metrics such as accuracy, precision, recall, and F1 score. \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurpreet0022%2Fcardio-tree-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgurpreet0022%2Fcardio-tree-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgurpreet0022%2Fcardio-tree-classifier/lists"}