Giter Site home page Giter Site logo

unite-deals / horse-racing-prediction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cagataygulten/horse-racing-prediction

0.0 0.0 0.0 21.9 MB

Data analysis and representation of horse racing in Turkey and development of a predictive algorithm by web scrapping and using machine learning regression models in Python.

License: MIT License

Jupyter Notebook 99.17% Python 0.83%

horse-racing-prediction's Introduction

Prediction and Data Analysis of Horse Racing in Turkey

Introduction

This project gives a clue based on statistics, a programming language along with machine learning algorithms and math to horse racing followers and by analysing horse racing data, makes some inferences to add cultural knowledge in the horse racing community in Turkey.


Source codes and a technical report including data analysis is available in repository.

Note

In case downloading whole project file as a zip, models.pkl should be downloaded separately.

It is not permitted to publish whole dataset, therefore, a part of the dataset is created, including all horse statistics of races between only 12/04/2021 and 18/04/2021 for demonstration. Date and city can be obtained from The Turkish Jockey Club website. (https://www.tjk.org/TR/YarisSever/Info/Page/GunlukYarisProgrami)

https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_1.jpg?raw=true


How to Use

Run the script named "horce_racing_predicter_demo.py" or ipython notebook named "Horse_Racing_Regression_Predictions.ipynb".

For Ipython

https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_2.jpg?raw=true


Change date and city to asked race inputs at the 6th cell (above) by keeping the current date format. Unless the date is not between 12-18/04/2021, it only considers jockeys statistics


https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_3.jpg?raw=true


Then enter desired race number as input to function in 8th cell (above).

After running all cells, prediction table is plotted. To make predictions for other races, change race number input and run just 8th cell again. If another day or city is asked, running all cells is required to scrape new data.


https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_4.jpg?raw=true


The table represents predicted total times of all horses. But it considers distance as categorical value, that means predicted times are not accurate for that race, just used for comparison. Lower time values means better performance, which are green cells.

For Python Script

https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_5.jpg?raw=true


It requires user input. Enter desired date and city. After it scrapes all required data, enter race number. |

https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_6.jpg?raw=true


https://github.com/cagataygulten/horse-racing-prediction/blob/master/pics/User_Manual_7.jpg?raw=true


After prediction, script keeps asking race number to proceed next races.

Getting Help and Contributing

Questions and contributions of all kinds are welcome.

Contact: [email protected]

horse-racing-prediction's People

Contributors

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