Releases: alan-turing-institute/AIrsenal
Releases · alan-turing-institute/AIrsenal
1.3.0
What's Changed
- Add home and away team info to goals and subs by @chahak13 in #440
- Added API calls from set_transfers and set_lineup to FPLDataFetcher class by @Abelarm in #442
- remove duplicates from print out by @callistusndemo in #447
- Bug/fpl team id consistency by @chahak13 in #450
- [FIX] Optimization for near the season end by @Abelarm in #446
- Bug/443 by @chahak13 in #451
- [Ready for review] Fix issue current squad data by @Tahmeed156 in #452
- Allow checking 2 more gameweeks for player by @chahak13 in #453
- Recent Development by @jack89roberts in #441
New Contributors
- @Tahmeed156 made their first contribution in #452
Full Changelog: v1.2.0...v1.3.0
1.2.0
What's Changed
- fixes issue #428 by @sreyan-ghosh in #432
- Add 5-2-3 formation by @callistusndemo in #438
- Feature/349/convention docs by @nbarlowATI in #425
- Add isort and pre-commit config by @jack89roberts in #437
- Add scraper for understat.com (Fixes #430) by @chahak13 in #436
- Recent Development by @jack89roberts in #435
New Contributors
- @sreyan-ghosh made their first contribution in #432
- @chahak13 made their first contribution in #436
Full Changelog: v1.1.1...v1.2.0
v1.1.1
v1.1.0
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
v1.0.0
New Features
- Lineups can now be set automatically via the FPL API, as well as transfers.
Enhancements
- Stan models replaced with numpyro (and
bpl
withbpl-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
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
- Fix missing
returrn
statement inairsenal_make_transfers
. - Updates to
README.md
forairsenal_make_transfers
and how to optimise chips withairsenal_run_optimization
.
v0.4.0
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 modifyingget_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 installbpl
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
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