{"id":26868899,"url":"https://github.com/cintia0528/data_science-supervised_machine_learning_classification_mushrooms","last_synced_at":"2025-03-31T05:35:22.575Z","repository":{"id":211162647,"uuid":"728373110","full_name":"Cintia0528/Data_Science-Supervised_Machine_Learning_Classification_Mushrooms","owner":"Cintia0528","description":"This project aims to identify the inevitable trade-off between accuracy and safety when predicting  poisonous mushrooms with ML.","archived":false,"fork":false,"pushed_at":"2023-12-06T20:23:29.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T05:35:17.862Z","etag":null,"topics":["accuracy-analysis","classification","error-types","roc-curve","supervised-machine-learning","treshold"],"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/Cintia0528.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}},"created_at":"2023-12-06T19:59:05.000Z","updated_at":"2024-02-26T05:33:38.000Z","dependencies_parsed_at":"2023-12-06T21:26:58.130Z","dependency_job_id":"ca3e5c17-1135-448c-b4ee-3678e643fd4e","html_url":"https://github.com/Cintia0528/Data_Science-Supervised_Machine_Learning_Classification_Mushrooms","commit_stats":null,"previous_names":["cintia0528/project-7-supervised-machine-learning-classification-mushrooms","cintia0528/data_science-supervised_machine_learning_classification_mushrooms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cintia0528%2FData_Science-Supervised_Machine_Learning_Classification_Mushrooms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cintia0528%2FData_Science-Supervised_Machine_Learning_Classification_Mushrooms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cintia0528%2FData_Science-Supervised_Machine_Learning_Classification_Mushrooms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cintia0528%2FData_Science-Supervised_Machine_Learning_Classification_Mushrooms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cintia0528","download_url":"https://codeload.github.com/Cintia0528/Data_Science-Supervised_Machine_Learning_Classification_Mushrooms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423503,"owners_count":20774796,"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":["accuracy-analysis","classification","error-types","roc-curve","supervised-machine-learning","treshold"],"created_at":"2025-03-31T05:35:20.232Z","updated_at":"2025-03-31T05:35:22.562Z","avatar_url":"https://github.com/Cintia0528.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Supervised Machine Learning - Classification\n## Goal\nTo explore the practical application of ML by trying to predict poisonous mushrooms, noticing the trade off between accuracy and safety. \n\n## Overview \nWe are interested in keeping Catalonian mushroom foragers safe from poisonous mushrooms, and therefore our aim is to completely eliminate Type II errors.\n\n## Context\nIn general, the aim of fine-tuning and perfecting the algorithms is to get our accuracy close to perfection. However, this time around the emphasis is on Error Types and the delicate dance between accuracy and safety.\n\n1. Are there any ML algorithms that by default err on the side of caution?\n2. Can we achieve 0 hospital cases with adjusting tresholds and exploring ROC curves?\n\n### Task: \n* Import mushroom database\n* Explore and analyze features\n* Experiment with several ML models\n* Experiment with tresholds while keeping an eye on accuracy\n* Explore ROC curve\n* Test our algorithm on data it has never seen before\n* Rinse and repeat\n\n## Deliverables\nThe **Google Colab Notebook** for trying out different ML algorithms is found [here](https://github.com/Cintia0528/Project-7-Supervised-Machine-Learning-Classification-Mushrooms/blob/feedbce3b23780986154448dda560d3e3b3fa9d8/Mushrooms.ipynb) with a supporting Medium article that outlines my thinking process and practical takeaways more in detail [here](https://medium.com/@ubp0528/poisonous-mushrooms-striking-a-balance-between-accuracy-and-safety-with-machine-learning-80b77112e6dd).\n\n## Skills \u0026 Tools\n1. Data Reading \u0026 Cleaning \n2. Data Splitting \n3. Building a Preprocessor\n4. LazyPredict \u0026 Modelling\n5. Error Analysis\n6. Tresholds and ROC Curve analysis\n\n## Note to the Reader about my choice of models to try:\nMy aim after running LazyPredict was to **experiment with algorithms based on various mathematical models**. \nRandomForest is a Decision Tree-based classifier, Label Propagation is a semi-supervised learning model, LGBM is a gradient boosting method, KNN groups data into “neighborhoods” based on similarities, while SVC looks for and calculates distances for the optimal hyperplane to divide the data into classes. \nBy exploring various methods based on different mathematical models, I was curious whether any one of them would be more or less prone to a certain error type. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcintia0528%2Fdata_science-supervised_machine_learning_classification_mushrooms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcintia0528%2Fdata_science-supervised_machine_learning_classification_mushrooms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcintia0528%2Fdata_science-supervised_machine_learning_classification_mushrooms/lists"}