Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PremFun

In this project, we will predict the winner of football matches in the English Premier League (EPL) by using data to extract meaning from recent trends.

Enlisting the steps which helped me conceptualize and implement the project:

  • Scrape match data using requests, BeautifulSoup, and pandas.
  • Clean the data and get it ready for machine learning using pandas and regex.
  • Make predictions about who will win a match using scikit-learn.
  • Measure error and improve our predictions.

Code

File overview:

  • scraping.ipynb - a Jupyter notebook that scrapes our data.
  • predictions.ipynb - a Jupyter notebook that makes predictions.

Local Setup

Installation

To follow this project, please install the following locally:

  • JupyterLab (or one can use Google Colab)
  • Python 3.8+
  • Python packages
    • pandas
    • requests
    • BeautifulSoup
    • scikit-learn

Data

We'll be scraping FBref to get our data in the first part of this project (scraping.ipynb).

If you only want to do the second part of the project (predictions.ipynb) you can download my matches.csv from above.

About

A full-stack application comprising a machine learning model which predicts the outcome of Premier League Matches.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages