Horse + Iris
Horis is a web application which allows you to predict horse racing results. When you enter a list of horses with their positions, Horis will return a sorted list of results to the user.
Under the hood, it uses scikit-learn
SVR models to approximate a placement
for each horse.
NOTE: Horis only predicts results, and the prediction is not perfect. You should probably not use this application for your real predictions in horse races.
- MacOS/Linux for the server
- Python 3.6+
- Python requirements are in
requirements.txt
- Python requirements are in
- SQLite 3
- Node.js for front-end compilation
- Horses database and trained SVR, from TJK-Scraper
- Clone the repository.
- Create a new virtualenv:
virtualenv env
- NOTE: you might need to install the virtualenv package from your
distribution's packages. It's usually listed as
python3-virtualenv
.
- Activate the virtualenv:
source env/bin/activate
- Install the required packages:
pip install -r requirements.txt
- Install the Node.js requirements:
yarn
ornpm i
- Compile the webpack assets:
yarn build
- Start the server:
uvicorn horis.app:app
- NOTE: you will need a web server such as Nginx if you're using this in production. You also need to be in the virtualenv when the server is running.
When you open the front-page of Horis, you will be greeted with a page which will ask you to fill out a table, with one row for each horse. Select each horse from the dropdown that is presented to you, and fill out the rest of the columns. After you fill out all the rows, press "Submit". Horis will predict the results of the race and return the rankings back to you.
© 2020 Efe Mert Demir. This software is licensed under the BSD 3-Clause License.