Open wizardous23 opened 2 years ago
Just out of curiosity. Why would you want to implement a 5 stack ? Historically a 5 stack has appeared in optimal lineups < 1% of the time appearance of 3 stacks (>10%of the time but <15%) 2-2 stacks (> 20% of the time < 25%) and 2 stacks (>25% of the time). Also in the 2 stacks on multiple occasions the P is generally part of the 2 stack( just started tracking that this year so very small sample so far but of the 20 slates 8 of the 2 stacks has had the P) Sorry for the book
HITTERS = ('SP','1B', '2B', '3B', 'SS', 'C', 'OF') optimizer.add_stack(PositionsStack([HITTERS] 5)) optimizer.add_stack(PositionsStack([HITTERS] 3))
optimizer.add_stack(TeamStack(5, for_teams=['MIN'], for_positions=['C', '1B', '2B', '3B', 'SS', 'OF'])) optimizer.add_stack(TeamStack(3, for_teams=['TOR'], for_positions=['C', '1B', '2B', '3B', 'SS', 'OF']))
I'm trying to make a 5 and 3 stack in the same lineup
Is this how you would go about doing it? I seem to be getting a 5 stack just fine but the 3 stack usually ends up being 2 players.