Skip to content

Does setting min_exposure per player no longer work? #432

@EdCarGoes

Description

@EdCarGoes

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions