DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
423 stars 157 forks source link

Grouping Mvp, Star, Pro working mostly? #341

Open lightninglarry opened 2 years ago

lightninglarry commented 2 years ago

@DimaKudosh In reference to your reply on #306
Heres my code:

optimizer.add_players_group(PlayersGroup([ optimizer.player_pool.get_players('Stephen Curry', 'DeMar DeRozan', 'Nikola Vucevic', 'Zach Lavine', 'Lonzo Ball', PlayerFilter(positions=['MVP'])), optimizer.player_pool.get_players('Stephen Curry', 'DeMar DeRozan', 'Nikola Vucevic', 'Zach Lavine', 'Lonzo Ball',' Andrew Wiggins', PlayerFilter(positions=['STAR'])), *optimizer.player_pool.get_players('Stephen Curry', 'DeMar DeRozan', 'Nikola Vucevic', 'Zach Lavine', 'Lonzo Ball', 'Andrew Wiggins', 'Klay Thompson', PlayerFilter(positions=['PRO'])), ], min_from_group=3 ))

Players Used: Top Players Stephen Curry - 10 (MVP-7,STAR-2,PRO-1) James Wiseman - 10 (C-7,PRO-3) DeMar DeRozan - 9 (STAR-6,MVP-2,PRO-1) Zach LaVine - 8 (SG-7,STAR-1) Jordan Poole - 6 (PRO-2,PG-3,STAR-1) Alex Caruso - 2 (PG-1,PRO-1) Lonzo Ball - 2 (PRO-2) Andrew Wiggins - 1 (SF-1) Nikola Vucevic - 1 (MVP-1) Andre Iguodala - 1 (SF-1)

Curious as to why Wiseman and Poole are being put in as pro?