Giter Club home page Giter Club logo

machine-learning-soccer-regression's Introduction

Machine-learning-soccer-regression

Using regression to predict the pontuation and place of a soccer team in Campeonato Brasileiro de Futebol

About The Project

I am a soccer lover so I decided to start a project using programming to try to predic with regression the final pontuation of the soccer teams that are participating in Campeonato Brasileiro de Futebol Série A, which is a running point championship with 38 rounds and 20 teams and a very hard one with 7 different winners in the past 18 years.

  • This project was developed for the subject Introdução ao aprendizado de máquina e à mineração de dados (PO450) offered by the college Unicamp

Built With

Python in Jupyter Notebook

I decided to try different machine learning approaches to compare the results, so i used linear regression, decision tree, random forest and XGBoost. To get the data to train and to test my machine learning models I used web scraping from the site WorldFootball.net.

Features and scores

image

Data for training and testing

X_train = atrib_norm[:4560] # 2013-2018

X_test = atrib_norm[4560:5320] # 2019

d_train = pontuacao[:4560] # 2013-2018

d_test = pontuacao[4560:5320] # 2019

  • The year of 2020 was used as validation data

Results

image

For the year of 2020 the models predicted the winner of the championship, Flamengo, from the data of the round 32:

image

The predictions for 2021 using data from round 12:

image

machine-learning-soccer-regression's People

Contributors

marcosptproenca avatar

Watchers

 avatar

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.