BoxerbookAI

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

TableRowsColumns
prefight_forecasts54forecast_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_bouts1,393date, both boxers, winner, method, round, scheduled_rounds, city, country, title flags, weights, judges, rating and rd of both before the bout, confirmation
boxers100name, sex, birth_year, stance, height_cm, reach_cm, division, division_rank
world_title_bouts5,835date, both boxers, winner, method, round, city, country, bodies, division
current_champions125body, division, champion, status, since
rating_top15_by_division389division, 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

More: developer quickstart · fields and files · keys and plans on boxerbook.com