Views
No views yet
ml-xgboost-v1HOME_WIN / DRAW / AWAY_WIN) gradient-boosted classifier predicting FIFA
World Cup 2026 match outcomes from team-strength features.HistGradientBoostingClassifier (gradient-boosted trees)| feature | meaning |
|---|---|
rank_diff = away_rank − home_rank | >0 favours home |
pts_diff = home_pts − away_pts | >0 favours home |
home_is_host | home side is a 2026 host (USA/Mexico/Canada) |
1import joblib, pandas as pd
2from huggingface_hub import hf_hub_download
3
4model = joblib.load(hf_hub_download("sergiopesch/wc2026-match-predictor", "model.joblib"))
5X = pd.DataFrame([{"rank_diff": 11 - 5, "pts_diff": 1776 - 1694, "home_is_host": 0}])
6print(dict(zip(model.classes_, model.predict_proba(X)[0])))1curl -X POST https://sergiopesch-wc2026-match-predictor.hf.space/predict \
2 -H "Content-Type: application/json" \
3 -d '{"home_rank":5,"home_pts":1776,"away_rank":11,"away_pts":1694,"home_is_host":0}'