Skip to content

Releases: alan-turing-institute/AIrsenal

1.3.0

29 Oct 13:20
359ebbc
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.0...v1.3.0

1.2.0

15 Oct 15:55
567c9ad
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.1...v1.2.0

v1.1.1

24 Sep 14:11
f909224
Compare
Choose a tag to compare

Enhancements

  • Make arguments for playing chips available in airsenal_run_pipeline (#422)

Bug Fixes

  • Closes #423 - fix outdated use of season in Squad.get_sell_price_for_player

v1.1.0

17 Sep 19:22
beb4966
Compare
Choose a tag to compare

New Features

  • Closes #403
  • Add player model that computes posterior parameters exactly using conjugate prior (closes #399).

Enhancements

  • Login to FPLDataFetcher for getting latest transfer/picks status and fix bug with AIrsenal thinking players have 2 free transfers for GW2.
  • Update default environment to Python 3.8
  • Weakens the prior for the player model (to be equivalent to being on the pitch for 13 team goals)
  • Add season as an attribute of the Squad class (#354)

Bug Fixes

  • Closes #410 : Fix KeyError in make_transfers
  • Force multiprocessing strategy to spawn on posix systems, to fix change in default strategy between Python 3.7 and 3.8.
  • Closes #412

v1.0.0

11 Aug 12:46
4c05c9b
Compare
Choose a tag to compare

New Features

  • Lineups can now be set automatically via the FPL API, as well as transfers.

Enhancements

  • Stan models replaced with numpyro (and bpl with bpl-next).
  • Pinned dependency versions.

Bug Fixes

  • airsenal_make_pipeline will now quit if any step fails.
  • Applying transfers in the API now works for initial squads in gameweek 1.
  • Fix Docker builds.
  • airsenal_setup_initial_db now checks whether a database already exists before proceeding.

v0.5.0

23 Jul 09:54
6732414
Compare
Choose a tag to compare

New Features

  • Add data files from API for the completed 2020/21 season.
  • Add 2021/22 teams and FIFA ratings.

Enhancements

  • Use recent minutes from a minimum of the last 3 gameweeks when making predictions (previously same number of gameweeks as predicting for, so could be as few as a single gameweek).
  • Code refactoring.
  • Make it possible to use genetic optimisation for wildcards and free hits (not only initial squads)

Bug Fixes

  • Only attempt to update player attributes history after GW1.

v0.4.1

08 May 09:50
Compare
Choose a tag to compare
  • Fix missing returrn statement in airsenal_make_transfers.
  • Updates to README.md for airsenal_make_transfers and how to optimise chips with airsenal_run_optimization.

v0.4.0

07 May 20:19
978f014
Compare
Choose a tag to compare

New Features

  • Closes #159 : Add injury/suspension status to the PlayerAttributes table in the database.
  • Closes #338 : Add fixture updates to airsenal_update_db
  • Make it possible to specify the database location in config files.
  • Closes #286 : Add airsenal_make_transfers to programmatically make recommended transfers with the FPL API.

Enhancements

  • Add FIFA ratings for 17/18 season.
  • Default to using recent minutes from the same number of matches that we're predicting for (previously always last 3 matches).
  • Make airsenal_update_db faster by modifying get_gameweek_by_date to filter fixtures by season and adding a LRU cache (same as the previous contribution to make the optimisation much faster).
  • Make airsenal_run_pipeline only update the database by default (not delete and recreate). Add --clean argument to delete and recreate if desired.
  • Add __str__ methods to classes in schema to tidy up some printing.

Bug Fixes

  • Check for pre-existing rows in the database when updating match results and player scores.
  • Closes #355 : Fix checks for whether transactions are already in the database when adding them from the API
  • Fix some logic around updating pre-existing rows and free hit transfers, and finding the last gameweek we have all results for.
  • Closes #356 : Fix error caused by query in get_max_gameweek.
  • Pin pystan to v2 due to breaking changes in v3, and install bpl from a specific git commit.
  • Attempt to fit the team model 3 times before erroring as a workaround for sporadic initialisation errors from bpl.
  • Hide tqdm warnings in optimisation progress bars (#360 )

v0.3.0

15 Jan 09:51
5f7b745
Compare
Choose a tag to compare

New Features

  • Add option to exclude strategies that spend too many points on transfers, or that waste free transfers (#321 )
  • Closes #314: Make it possible to specify the week chips are played.
  • Closes #265: Make it possible to specify FPL team ID from the command-line.
  • Closes #266: Make it possible to run AIrsenal with multiple team IDs.
  • Closes #317: Discount predicted points totals from future gameweeks.

Enhancements

  • Closes #227 : Fix flake8 errors and add code quality checks to Travis.
  • Closes #148: Quit optimisation with a meaningful error message if prediction tag doesn't have predictions for specified gameweeks.
  • Closes #329: Clarify API access errors (that can be ignored) printed for squads entered after GW1.
  • Speedup prediction and make it possible to run on more than four threads (#328)

Bug Fixes

  • Fix using pre-wildcard/pre-free hit squad for points calculation (#312)
  • Fix points calculation for free hit/bench boost + no transfers (#315)
  • Closes #323 Fix missing results/scores if update run mid-gameweek.
  • Fix sanity check errors caused by 5 substitutes being allowed at the end of the 2019/20 season (from #333, for #180)
  • Closes #332 : Fix incorrect import in data sanity checks