Team Messi Data: John He, Daeun Ji, Teddy Debreu, and Kavya Bhat
This project focuses on analyzing soccer match data and developing an AI-powered lineup recommendation and substitution system.
README.md
# Project description and guiderequirements.txt
# List of required packages for the projectextract_data_from_pdfs.ipynb
# Jupyter Notebook for extracting data from PDFsextract_player_data.ipynb
# Jupyter Notebook for analyzing player datainitial_lineup_generator.py
# Python script for generating initial lineupsPlayer_Substitution.ipynb
# Jypyter Notebook for analysing substition player
- Clone our repository into a folder. You will be working within this folder.
- All necessary data files can be downloaded from this link: https://drive.google.com/file/d/11uGTK2-DmquGXKvqoUxr0KA8ZDj8-wpV/view?usp=sharing
- Download and unzip the data
- Please drag folders:
match-reports
,player-data
, andteam-data
into the cloned repository folder - Note: Please ensure that you do not drag the parent folder
Hackathon Data
into the cloned repository folder
You will need to have python3 and anaconda installed. If these are not installed, please install them.
conda create -n hackathon2024env
conda activate hackathon2024env
conda install pip
pip install -r requirements.txt
- Open
extract_data_from_pdfs.ipynb
and run all code chunks - Open
extract_player_data.ipynb
and run all code chunks
- Open and run (or run in terminal)
initial_lineup_generator.py
- Open
Player_Substitution.ipynb
and run all code chunks
- Make sure you are in our directory.
- Get OpenAI API Key for GPT 4o-mini.
- ON MAC-Open terminal and write this command:
export OPENAI_API_KEY="your-key-here"
- ON PC-Open Powershell and write this command:
$ENV:OPENAI_API_KEY="your-key-here"
- Run Command:
python tedlasso.py
in terminal