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

Does setting min_exposure per player no longer work? #432

Open
EdCarGoes opened this issue Sep 23, 2024 · 2 comments
Open

Does setting min_exposure per player no longer work? #432

EdCarGoes opened this issue Sep 23, 2024 · 2 comments

Comments

@EdCarGoes
Copy link

I swear I've done this successfully many times before, but for whatever reason setting min_exposure does not seem to work at all now. I've tested with Site.DRAFTKINGS and Site.FANDUEL with Sport.FOOTBALL

Here's a snippet of my code:

player = optimizer.player_pool.get_player_by_name("Josh Allen")
print(player)
player.min_expossure = 0.5
lineups = list(optimizer.optimize(n=10,max_exposure=0.8))

It builds 10 lineups but Josh Allen is only in one of them.
The print(player) line returns "Josh Allen QB (BUF)", showing that it is finding the player successfully.
The max_exposure for the whole thing is working as no players are in lineups more than 8 times.

Am I not using this right or is there an issue somewhere?

@Denwen12
Copy link

Denwen12 commented Sep 24, 2024 via email

@Denwen12
Copy link

Denwen12 commented Sep 24, 2024 via email

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