Comments (2)
Anyone know why this wouldnt be working?
optimizer.restrict_positions_for_opposing_team(['P'], ['C', 'SS', 'OF', '1B', '2B', '3B'])
Traceback (most recent call last): File "C:\Users\chris\Desktop\MLB\02. MLB Optimizer.py", line 17, in optimizer.restrict_positions_for_opposing_team(['P'], ['C', 'SS', 'OF', '1B', '2B', '3B']) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\pydfs_lineup_optimizer\lineup_optimizer.py", line 350, in restrict_positions_for_opposing_team raise ValueError("Each restriction should be a tuple of (first_team_positions, second_team_positions, max_allowed)") ValueError: Each restriction should be a tuple of (first_team_positions, second_team_positions, max_allowed) [Finished in 157ms]
For DK it has to be as follows
optimizer.restrict_positions_for_opposing_team(['SP', 'RP'], ['1B', '1B/2B', '1B/3B', '1B/OF','1B/C','1B/SS', '2B', '2B/C', '2B/3B', '2B/OF', '2B/SS', '3B', '3B/OF', '3B/SS', 'C', 'C/1B', 'C/2B', 'C/OF', 'OF', 'SS','OF/SS', 'SS/OF'])
Not sure position assignments for FD
from pydfs-lineup-optimizer.
Thank you for the help! @Milkman9691
from pydfs-lineup-optimizer.
Related Issues (20)
- MLB Fanduel occassional "unable to build lineup" error HOT 7
- TeamStack exclude Pitcher HOT 1
- Issue with FD MLB when player has three positions HOT 1
- Modifications to enhance optimization speed HOT 1
- DK input file for MLB HOT 2
- NFL Stack with Bring Back
- TeamStacks HOT 2
- MIP Solver error HOT 1
- Formula 1 compatibility? HOT 3
- optimizer.get_player_by_name ERROR HOT 4
- Screen Lineups don't match exported lineups HOT 1
- Can we get a Min exposure rule?
- TeamStacks?
- College Basketball NCAAB ?
- Roster Range Question HOT 1
- Team exposure but leave out a position HOT 3
- Does Anyone know is there a way? HOT 44
- OSError: [Errno 86] Bad CPU type in executable
- “ValueError: max() arg is an empty sequence"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydfs-lineup-optimizer.