Skip to content

x314ce/wow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎾 Tennis Outcome Analysis — Prototype Skeleton

This is a runnable MVP skeleton for predicting tennis match outcomes, benchmarking against market (median odds), backtesting, and bankroll simulation.

Quickstart

1) Prerequisites

  • Python 3.10+
  • Docker (optional, for PostgreSQL)

2) Setup

cd tennis-outcome-platform python -m venv .venv && source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt cp .env.example .env

3) (Optional) Start Postgres

docker-compose up -d postgres adminer psql -h localhost -U postgres -d tennis -f schema.sql

4) Load sample data and generate ELO features

python etl/ingest.py python etl/elo.py

5) Train the model

python models/train.py

6) Backtest + simulation

python backtest/backtest.py python backtest/simulate.py # see backtest/bankroll_curve.png

7) Run API and UI

uvicorn app.api:app --reload streamlit run app/ui.py

Hardware

  • Dev: 4 cores / 8–16 GB RAM / 20 GB disk
  • Prod-ish: 8 cores / 32 GB RAM / 100 GB disk

GitHub Repository

Initialize and push:

git init git add . git commit -m "Initial tennis predictor skeleton" gh repo create <your-org-or-user>/tennis-outcome-platform --public --source=. --remote=origin --push # or create repo on GitHub and: git remote add origin git@github.com:<you>/tennis-outcome-platform.git git push -u origin main

Notes

  • Odds in this skeleton are mocked. Replace etl/ingest.py to pull licensed odds & compute median odds per match-time cut. Align timestamps carefully and remove overround before benchmarking.
  • Extend features: fatigue, recent form, H2H, surface specialties, etc.
  • Swap to LightGBM/CatBoost in models/train.py by ensuring packages installed; the script auto-detects LightGBM.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages