Skip to content

Fantasy La Liga Predictor is a machine learning model that provides users with player recommendations for the Spanish football league, La Liga, and a website for easy interaction with the model.

Notifications You must be signed in to change notification settings

quiquemz/fantasy-la-liga-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fantasy La Liga Predictor

Fantasy La Liga Predictor is a machine learning model that provides users with accurate and timely recommendations on which players to purchase and at what price, ultimately helping users to create a winning Fantasy team for the Spanish football league, La Liga.

Architecture

The architecture pipeline of the project is as follows:

  1. Data Extraction: Extract data from Fantasy LaLiga API with Lambda Function
  2. Data Storage: Store raw data on S3
  3. Data Transformation: This triggers a function app that initializes a Sagemaker Notebook to transform the data by cleaning and performing feature engineering and storing this final dataset on S3
  4. Model Training: Train model using SageMaker and save it on S3
  5. Model Deployment: Deploy model to a SageMaker Serverless instance

Architecture

Features

The model uses the following features to predict the performance of a player in the next match:

  • Average number of points earned in the last 5 matches
  • Total number of goals scored in the last 5 matches
  • Average number of minutes played in the last 5 matches
  • Number of previous injuries
  • Average number of points earned at home
  • Average number of points earned away

Usage

Usage

To use the app, you will need to deploy the Lambda functions and API Gateway as described in the Architecture section. Once you have deployed the necessary resources, you can run the app using the following command: streamlit run app.py

This will start the Streamlit app, which you can access by navigating to http://localhost:8501 in your web browser. From there, you can enter the name or ID of a player and the app will return a recommendation on whether to buy or not based on the player's predicted performance in the next match.

Contributors

License

This project is licensed under the terms of the MIT license.

About

Fantasy La Liga Predictor is a machine learning model that provides users with player recommendations for the Spanish football league, La Liga, and a website for easy interaction with the model.

Resources

Stars

Watchers

Forks