football_xg_model
Estimate expected goals and win/draw/loss probabilities for a football match from home and away teams, with an option to remove home advantage for neutral venues.
Instructions
Estimate a match's expected goals and win/draw/loss probabilities.
Args: home_team: First team, FIFA code or name (e.g. "ARG" or "Argentina"). away_team: Second team, FIFA code or name (e.g. "BRA" or "Brazil"). neutral: True for a neutral venue (no home advantage). World Cup default.
Returns: data: {expected_home_goals, expected_away_goals, home_win, draw, away_win}. meta.estimated: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| neutral | No | True for a neutral venue (no home advantage). World Cup default. | |
| away_team | Yes | Second team, FIFA code or name (e.g. "BRA" or "Brazil"). | |
| home_team | Yes | First team, FIFA code or name (e.g. "ARG" or "Argentina"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| error | No |