Giter VIP home page Giter VIP logo

sebastianrokholt / soccer-predictions Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 1.65 MB

A repository containing the code for a machine learning project about predicting the outcome of soccer matches, including a simple web application built with Flask.

License: MIT License

HTML 28.47% Jupyter Notebook 71.20% Python 0.33%
machine-learning data-science python flask soccer soccer-analytics elasticnet svm regression exploratory-data-analysis

soccer-predictions's Introduction

Soccer Predictions

Predicting the outcome of matches for the Norwegian women's soccer championships (Toppserien)

This repository contains the code for a Data Science project about predicting the outcome of soccer matches, including a simple web application built with Flask.

The Data

The dataset was provided through the course material for INF161: Data Science at the University of Bergen, and was sourced from FBRef. The main dataset contains statistics on Toppserien soccer matches in the years 2017 - 2019. In addition, the repository contains an overview of the planned fixtures (games) for the 2020 season, which was used for the final predictions at the end of the project. These predictions were submitted to the INF161 course's Kaggle contest.

The Process

Part 1: Preparations
Data inspection, cleaning and wrangling. Feature engineering and some simple visualisations.
Part 2: Modelling
Exploratory data analysis and machine learning modelling. Evaluations and predictions on the 2020 data.
Part 3: Implementation
Creating a simple Flask application for the model, where a user can enter two Toppserien teams and receive a predicted match outcome.

Repository Content

Setup

  1. Clone repository. To run the Flask application, download soccer-predictions-website and model.pkl as a minimum.
  2. Make sure that Python 3.6 or newer is installed. I recommend running the .ipynb files in Jupyter Notebook or Google Colab.
  3. run python -m pip install -r 'requirements.txt' in the terminal to install dependencies.
  4. run python app.py to run the web application locally at port 8080.

soccer-predictions's People

Contributors

sebastianrokholt avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

endre-tonnessen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.