dfs-with-r / coach

Lineup optimization for daily fantasy sports
https://dfs-with-r.github.io/coach/
GNU General Public License v3.0
46 stars 14 forks source link

Prevent duplicate lineups #17

Closed themultiv3rs3 closed 4 years ago

themultiv3rs3 commented 4 years ago

Is it possible to prevent duplicate lineups? For example, in nba, many of the players can play multiple positions (PG/SG, SF/PF, PF/C). The optimizer produced duplicate lineups even though the players weren't always in the same lineup position.

zamorarr commented 4 years ago

hi @algosync, the optimizer should be preventing duplicate lineups. Happy to help though. Can you provide some example code on how you loaded the data built the lineups? This has happened to others before but it was usually because of duplicate rows in the data or having non-sequential row_ids.

themultiv3rs3 commented 4 years ago

My bad. I just realized I loaded my import file twice so all of the rows in my data model were duplicated. I just tried it again and it is producing unique lineups. Thanks for the tip.

zamorarr commented 4 years ago

No problem. Glad it worked.