Data
Boxing dataset for machine learning
Short answer. Two free sample sets, CSV and Parquet, on Hugging Face and Kaggle. Fight model sample: 100 boxers, their 1,393 career bouts with ratings before each bout, and 54 bouts with pre-fight signals, forecast and result. Showcase: 5,835 world title bouts, current champions, the top 15 of each division. The full catalog (205,184 bouts) is read through the API or by a data licence.
Tables
| Table | Rows | Columns |
|---|---|---|
prefight_forecasts | 54 | forecast_p_a, rating_p_a, record, last5, layoff_days, ko_rate, home, stance, reach_cm, mu, rd, weight_lb for both corners; winner, method, round, judges |
career_bouts | 1,393 | date, both boxers, winner, method, round, scheduled_rounds, city, country, title flags, weights, judges, rating and rd of both before the bout, confirmation |
boxers | 100 | name, sex, birth_year, stance, height_cm, reach_cm, division, division_rank |
world_title_bouts | 5,835 | date, both boxers, winner, method, round, city, country, bodies, division |
current_champions | 125 | body, division, champion, status, since |
rating_top15_by_division | 389 | division, rank, name |
Load and score it
python · dataset_sample.py
"""Score the pre-fight forecasts of the public sample: accuracy and Brier score, model against rating.
No key, no dependencies. Data: https://huggingface.co/datasets/Boxerbook/boxing-fight-model-sample
"""
import csv, io, urllib.request
URL = "https://huggingface.co/datasets/Boxerbook/boxing-fight-model-sample/resolve/main/prefight_forecasts.csv"
with urllib.request.urlopen(urllib.request.Request(URL, headers={"User-Agent": "dataset-sample-example"}), timeout=60) as r:
rows = list(csv.DictReader(io.StringIO(r.read().decode("utf-8"))))
done = [r for r in rows if r["winner"] in ("a", "b") and r["forecast_p_a"] and r["rating_p_a"]]
print("%d bouts in the file, %d with a winner" % (len(rows), len(done)))
for name, col in (("rating only", "rating_p_a"), ("model", "forecast_p_a")):
hits = sum((float(r[col]) > 0.5) == (r["winner"] == "a") for r in done)
brier = sum((float(r[col]) - (r["winner"] == "a")) ** 2 for r in done) / len(done)
print("%-12s winner picked %4.1f%% Brier %.3f" % (name, 100 * hits / len(done), brier))Notes for modelling
- Every signal is computed from bouts dated before the bout, so the tables are safe from look-ahead.
p_acolumns are the probability of side a; the sides are not random (in the catalog the winner sits on side b about twice as often as on side a), so read each bout from both corners.- Birth years only; no names of minors; no money figures.
- Field definitions: what a bout carries. What the signals are worth: the study on 34,414 bouts.
- Licence of the sample files: the Boxerbook Showcase Data Licence. You may analyse and quote the data, publish your findings, train and evaluate models, with credit to Boxerbook; you may not sell or redistribute the files or build a competing database. Products and bulk data: by plan or licence (terms).
More: developer quickstart · fields and files · keys and plans on boxerbook.com