{"id":21470947,"url":"https://github.com/saadarazzaq/probabilistic-tennis-classifier","last_synced_at":"2025-03-17T06:45:12.355Z","repository":{"id":204483127,"uuid":"711964463","full_name":"SaadARazzaq/Probabilistic-Tennis-Classifier","owner":"SaadARazzaq","description":"Predict tennis play decisions from weather data with Naive Bayes Classifier. 🎾🔥","archived":false,"fork":false,"pushed_at":"2023-11-01T16:22:36.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T16:14:23.857Z","etag":null,"topics":["machine-learning","naive-bayes-classifier","probabilistic-models","supervised-learning"],"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/SaadARazzaq.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":"2023-10-30T14:25:36.000Z","updated_at":"2023-11-15T18:36:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"a6ffe6fe-5647-4787-93fb-9a54f83e5a6a","html_url":"https://github.com/SaadARazzaq/Probabilistic-Tennis-Classifier","commit_stats":null,"previous_names":["saadarazzaq/probabilistic-tennis-classifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadARazzaq%2FProbabilistic-Tennis-Classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadARazzaq%2FProbabilistic-Tennis-Classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadARazzaq%2FProbabilistic-Tennis-Classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadARazzaq%2FProbabilistic-Tennis-Classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaadARazzaq","download_url":"https://codeload.github.com/SaadARazzaq/Probabilistic-Tennis-Classifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988956,"owners_count":20379649,"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":["machine-learning","naive-bayes-classifier","probabilistic-models","supervised-learning"],"created_at":"2024-11-23T09:29:51.321Z","updated_at":"2025-03-17T06:45:12.320Z","avatar_url":"https://github.com/SaadARazzaq.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎾 Probabilistic Tennis Classifier 🌦\n\n![image](https://github.com/SaadARazzaq/Probabilistic-Tennis-Classifier/assets/123338307/4a2ce158-e1c3-43e2-a620-c889fcd8c83b)\n\nWelcome to the **Probabilistic Tennis Classifier**—where we bring a dash of data science and machine learning into your daily tennis game decisions! 🤖... \n\n`NOTE: *Funfact: This Code is all writen without using ML libraries. All handcrafted with bacjend logic of the algorithm 😎*`\n\n## 🎾 Introduction\n\nAre you ever in a dilemma about whether to grab your tennis racket and hit the courts when the weather is just as unpredictable as your tennis partner's serve? 🎾🌤️ This repository has your back!\n\nOur nifty **Naive Bayes classifier** is here to help you decide whether it's a good idea to play tennis on a given day based on the weather conditions. We're taking the guesswork out of your tennis plans and replacing it with data-driven decision-making! 📊\n\n## 🌦 Problem Statement\n\nLet's set the stage for our problem:\n\n**Problem 1:**\n\nImagine you wake up to a day with the following weather conditions:\n- Outlook: Sunny ☀️\n- Temperature: Hot 🔥\n- Humidity: High 💧\n- Wind: Weak 🌬️\n\nYour task? Determine whether it's a good day to grab your tennis gear and head out to the courts. 🎾\n\n## 🧠 Intuition\n\nWe're not just guessing—our classifier is armed with the power of probability and Bayesian reasoning. To make the call, we calculate two important probabilities:\n\n- **P(Yes | Sunny, Hot, High, Weak)**: The chance of playing tennis when it's sunny, hot, humid, and with a gentle breeze.\n- **P(No | Sunny, Hot, High, Weak)**: The probability of skipping tennis on such a day.\n\nWe break these probabilities down into the individual components:\n- **P(Sunny | Yes)**: How often it's sunny when we decide to play tennis.\n- **P(Hot | Yes)**: The likelihood of a hot day for tennis.\n- **P(High | Yes)**: The probability of high humidity during a tennis game.\n- **P(Weak | Yes)**: The chances of weak wind on tennis days.\n- **P(Yes)**: The overall probability of playing tennis.\n\nWe do the same for not playing tennis (No). Then, we compare the results and go with the one that shouts \"Play Tennis!\" the loudest. This smart decision-making process is what we call the **Maximum a Posteriori (MAP) rule.**\n\n## 📂 Repository Structure\n\n- `data/play_tennis.csv`: Our secret sauce, a dataset with historical weather and tennis play decisions.\n- `notebook.ipynb`: The magical Python script housing our custom Naive Bayes classifier.\n- `README.md`: The interactive tour guide you're reading right now.\n\n## 🚀 Usage\n\nWant to see our classifier in action? Dive into the `notebook.ipynb` file, where we showcase how to use the classifier to make predictions based on weather conditions.\n\n## 🙌 Contributions\n\nWe welcome contributions and feedback from anyone who wants to make this project even cooler. Feel free to submit a pull request with your ideas for improvement or expansion. 🌟\n\n## 🎩 Credits\n\nThis project was crafted with 💖 by [Saad Abdur Razzaq](https://github.com/SaadARazzaq) and [Wasif Anwar](https://github.com/wiznemm). If you find it helpful, a little tip of the hat in the form of credit to this repository would be much appreciated.\n\nReady to let data guide your tennis game decisions? Let's play some tennis! 🎾🌞\n\n*Serve responsibly.* 🎾👟🥤\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadarazzaq%2Fprobabilistic-tennis-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaadarazzaq%2Fprobabilistic-tennis-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadarazzaq%2Fprobabilistic-tennis-classifier/lists"}