https://github.com/lasithaamarasinghe/olympic-medal-count-prediction
This ML model predicts the medal count for various countries in the Olympic Games using Linear Regression.
https://github.com/lasithaamarasinghe/olympic-medal-count-prediction
jupyter-notebook linear-regression machine-learning medal-count-prediction numpy olympics pandas python sckiit-learn seaborn
Last synced: 2 months ago
JSON representation
This ML model predicts the medal count for various countries in the Olympic Games using Linear Regression.
- Host: GitHub
- URL: https://github.com/lasithaamarasinghe/olympic-medal-count-prediction
- Owner: LasithaAmarasinghe
- Created: 2024-05-23T05:24:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-06-16T06:21:32.000Z (11 months ago)
- Last Synced: 2025-01-10T03:39:24.229Z (4 months ago)
- Topics: jupyter-notebook, linear-regression, machine-learning, medal-count-prediction, numpy, olympics, pandas, python, sckiit-learn, seaborn
- Language: Jupyter Notebook
- Homepage:
- Size: 311 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Olympic-Medal-Count-Prediction

## Overview
- This project uses [**Linear Regression**](https://www.ibm.com/topics/linear-regression) to predict the medal count for various countries in the Olympic Games.
- This repository contains all the codes and resources necessary to build and utilize the predictor.## Steps
- **Data Collection**: Obtain historical Olympic medal count data for various countries.
- **Data Preprocessing**: Clean and preprocess the data to prepare it for training.
- **Model Training**: Train the linear regression model using the preprocessed data.
- **Prediction**: Use the trained model to predict the upcoming Olympic Games medals.## Code
You can find the code for this project in the following files:
- [Olympic Medal Count Prediction.ipynb](https://github.com/LasithaAmarasinghe/Olympic-Medal-Count-Prediction/blob/4a6fb8e1f865840f4dd589a667c3b327f050edeb/Olympic%20Medal%20Count%20Prediction.ipynb): The main project code.
- [Data Preparetion.ipynb](https://github.com/LasithaAmarasinghe/Olympic-Medal-Count-Prediction/blob/4a6fb8e1f865840f4dd589a667c3b327f050edeb/Data%20Prep.ipynb): The code to generate the team-level dataset from an athlete-level dataset.## Technologies/ Tools
* Jupyter Notebook / [Google Colab](https://colab.research.google.com/)
* Python 3.10.12
* Python packages
* Pandas - `pip install pandas`
* Numpy - `pip install numpy`
* Scikit-learn - `pip install scikit-learn`
* Seaborn - `pip install seaborn`




## Data
Data used are from the Olympics, which was originally on [Kaggle](https://www.kaggle.com/datasets/heesoo37/120-years-of-olympic-history-athletes-and-results).
You can download the data set used in this project here:
* [Olympic.csv](https://github.com/LasithaAmarasinghe/Olympic-Medal-Count-Prediction/blob/af2fcbcb2e5e7680be7a7a1985b3b0e90f043cc0/Olympic.csv)