alan-turing-institute / AIrsenal

Machine learning Fantasy Premier League team
MIT License
290 stars 86 forks source link

Optimal Card Usage #692

Open RajeshTailor1 opened 1 week ago

RajeshTailor1 commented 1 week ago

Is there a switch that we can use when it comes to optimisation where we don't know which card would be best could be triple captain/wildcard etc and let the algorithm suggest which card would be best for which gameweek.

nbarlowATI commented 1 week ago

Good question! If you put "0" as "wildcard_week", "triple captain_week" etc, it will try that card in all the weeks that it's running optimization over, so if you try all of them, --wildcard_week 0 --triple_captain_week 0 --bench_boost_week 0 --free_hit_week 0, then it will try all possible combinations (but will take a long time if looking more than a couple of weeks ahead!) What I think you're asking, and which we don't have, but would be nice, is for the situation where there are perhaps lots of double-gameweek teams, and we know we want to play one chip, but we don't know which one... I guess we could add a new argument called something like --any_chip_week X, and it would try all chips for gameweek X.
Does that sound like what you're thinking of?

RajeshTailor1 commented 1 week ago

Spot on. Exactly what I was thinking the any chip week would be a great addition :)

nbarlowATI commented 1 week ago

OK excellent! I'll make a separate Issue for it, with some thoughts on how it can be done, and we can see if any helpful Hacktoberfest participants (or anyone else) wants to have a go.... Otherwise, one of us will implement it when we have a bit of time.