Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team exposure but leave out a position #425

Open
chrisbach1 opened this issue Apr 10, 2024 · 3 comments
Open

Team exposure but leave out a position #425

chrisbach1 opened this issue Apr 10, 2024 · 3 comments

Comments

@chrisbach1
Copy link

Anyone know if its possible to set a max team exposure but exclude a position from it? For instance if I wanted to exclude Pitchers?

Thanks!

@Milkman9691
Copy link

Not sure exactly what you are asking but here is a possible idea

optimizer.add_stack(TeamStack(5, for_teams=['MIN'], for_positions=['1B', '2B', '3B', 'OF', 'SS','C'], max_exposure_per_team={'MIN': 0.6}))

Unlike when doing the opposing restrictions you only have to use the basic positions for these

@chrisbach1
Copy link
Author

So this will provide the max exposure for Minnesota for the positions '1B', '2B', '3B', 'OF', 'SS','C' ?

@Milkman9691
Copy link

So this will provide the max exposure for Minnesota for the positions '1B', '2B', '3B', 'OF', 'SS','C' ?

That will give you 0.6 max exposure in your lineups for MIN yes. If you was playing 20 lineups 12 of them would have 5 MIN players for the listed positions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants