Skip to content

177arc/fpl-advisor

Repository files navigation

Binder Python 3.8

Fantasy Premier League (FPL) Advisor

WARNING: Playing FPL can be highly adictive.

Purpose

The purpose of the Advisor Jupyter notebook is to help with the selection of team members for the Fantasy Premier League (FPL) by attempting to forecast how many points players will earn.
It provides visual analysis and uses linear optimisation to recommend a team with the maximum expected points to improve the performance of your current team. The underlying data comes the fpl-data project which in turn gets it from the FPL API. The data is updated on an hourly basis.

If you are not familiar with the Fantasy Premier League, you can watch this introduction:

How to play FPL

Usage

To use the FPL Advisor Jupyter notebook interactively, simply open the advisor.ipynb notebook on Binder (it may take a bit of time to deploy the notebook).

Alternatively, simply clone the repository and open advisor.ipynb locally.

Here is a screenshot of the interactive chart for analysing players: FPL Advisor Visualisation

And you can use the optimiser for selecting the best players for a wildcard/free hit or recommending transfers for your team:
FPL Advisor Optimiser

To explore the FPL data using a neural network, train_nn_model.ipynb notebook on Binder.

Contributing

  1. Fork the repository on GitHub.
  2. Run the tests with python -m unittest discover -s tests/unit to confirm they all pass on your system. If the tests fail, then try and find out why this is happening. If you aren't able to do this yourself, then don't hesitate to either create an issue on GitHub, send an email to py@177arc.net.
  3. Either create your feature and then write tests for it, or do this the other way around.
  4. Run all tests again with with python -m unittest discover -s tests/unit to confirm that everything still passes, including your newly added test(s).
  5. Create a pull request for the main repository's master branch.

About

Jupyter notebook for interactively analysing Fantasy Premier League (FPL) players and optimising your team's performance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published