Coder Social home page Coder Social logo

ocansey11 / betting_prediction_model Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 5.93 MB

Machine Learning Model for Bet Tipping sites. By scrapping Data we are creating a model to measure credibility for bet tips and odds

License: Other

Jupyter Notebook 99.91% Python 0.09%

betting_prediction_model's Introduction

Betting Prediction Model

This project aims to predict football match outcomes using data scraped from various sources (Forebet.com and Sofascore). The project includes data scraping, processing, exploratory data analysis, model training, and evaluation.

Project Structure

Data

  • data/csv/: Contains the weekly accumulated and updated training(completed_match + previous league stats) and testing datasets(upcoming_matches + current league stats).

Notebooks found in various directories

  • notebooks/data_scraping/: Notebooks for scraping completed matches, upcoming matches, and league table standings.
  • notebooks/data_processing/: Notebooks for combining the scraped data into training and testing datasets.
  • notebook/exploratory_data_analysis.ipynb: Notebook for exploring the data. finding interesting patterns as the data grows weekly
  • notebook/model_classifiers.ipynb: Notebook for training and comparing different classifiers. The top three classifiers from this notebook will be expanded on. As the data grows new classifiers might perform better than old ones.
  • notebooks/models: Notebooks for tuning the best models and testing them out.

SQL Scripts

  • sql_scripts/: SQL scripts for creating tables and inserting data. incase you want to try and edit somethings on your own

Source Code

  • modules/: Python modules for database connections and SQL operations.

Flowcharts

  • flowcharts/: Diagrams explaining the data flow and processing steps.

How to Use

Option 1: Follow the Full Process

  1. Scrape Data: Use the notebooks in betting_prediction_model/data_scraping/ to scrape the latest data hence creating and storing them in a db
  2. Process Data: Use the notebooks in betting_prediction_model/data_processing/ to combine the scraped data into training and testing datasets.
  3. Train Models: Use betting_prediction_model/comparing_classifiers.ipynb to train and compare different models. and pick which one fits best. Currently we have little data. When the next season starts we will have really good data to work on
  4. Tune Models: Use betting_prediction_model/models to tune the best models individual. This helps you focus on your favorite model and play around with parameters and hyperparameters to yeild the best results

Option 2: Use Pre-Processed Data

  1. Download Data: Download the weekly accumulated and updated training and testing datasets from betting_prediction_model/data.

  2. Train Models: Use betting_prediction_model/comparing_classifiers.ipynb to train and compare different models using the downloaded datasets.

  3. Tune Models: Use betting_prediction_model/models.ipynb to tune the best models.

  4. Automation: You can run Pulling training and test csv from 'data' to directly pull training_data.csv and testing_data.csv into your database. This way you run the models straight away after.

Requirements for Automation and others

ChromeDriver My sql Workbench Python 3.0+

betting_prediction_model's People

Contributors

ocansey11 avatar

Stargazers

 avatar  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.