Anu Gnana

gaffer

An advisor-only Fantasy Premier League tool. Every week it downloads the public FPL data, predicts every player's points with a set of machine-learned models, plans your transfers several gameweeks ahead with a mathematical optimizer, and tells you what to do — in the terminal, in an HTML report and in a local web app.

What it never does

It never logs into FPL and it never makes a transfer. It reads public FPL endpoints only. You apply its advice yourself, in the official app.

The models

Points are predicted by parts rather than in one go. Six LightGBM component models each predict one piece of a player's score, and the pieces are assembled into expected points with FPL's own scoring table:

A final calibration layer corrects the level bias in the assembled numbers. Every number carries its uncertainty too: a range of what a player might actually score, from football's own variance plus the model's error. The bands are wide, and the project treats that width as the finding, not a bug. Penalties and set pieces are priced explicitly, from who actually took each penalty.

Then an injury and news pass adjusts each player's chance of playing, from injury tables, two predicted-line-up sources and the official flag. Applied last is your own pin, because you watched the press conference and the model did not.

The planner

The squad is planned by a multi-period mixed-integer program (PuLP for the modelling, HiGHS to solve, CBC as the fallback): transfers, captain, vice, bench order and chips together, over a receding horizon. It plans several weeks ahead, you play only the first, and next week it plans again.

The honesty rails

Honesty over polish is the first of the project's design principles. A number the tool cannot back up is not shown: missing data reads as a dash, never as zero; an empty state says why it is empty; a probability carries its sample size or its error bar where one exists. Every layer degrades gracefully and says so, rather than blocking or guessing.

The web app

The same advice is served as a local web app in six hubs — This Week, Planning, Players, League, Live and Model — reading the same files the command line writes, so the terminal, the report and the app can never disagree. Under the week's brief, a question box answers your own questions from the same facts and under the same truth check, and the answers are never saved. In the League hub, the Field panel prices your week against 300 synthetic managers drawn from the sampled top-10k ownership, and states its limits beside the number. It also gives the chance that your total after this week reaches the projected total for 10,000th place, taken from the daily reading at that rank plus its average weekly rise; until two gameweeks are banked, and once the week is under way, it says why it has no number. It is drawn in one design language: hairline rules rather than cards, tabular figures, and colour spent only where it means something. Pages render in dark and light, and at phone width.