DFS_Portfolio_Manager / global_func /hedging_preset.py

Commit History

Add team ownership calculation in hedging_preset.py to enhance lineup generation. Introduced a new function to sum hitter ownership by team and adjusted lineup target calculations for improved accuracy. This change allows for better team-based lineup strategies.
02245bb

James McCool commited on

Adjust lineup target calculations in hedging_preset.py to divide by double the list size, improving accuracy in lineup generation. This change enhances the filtering process for both removed and locked lineups.
fbbb0e8

James McCool commited on

Refactor player iteration logic in hedging_preset.py to improve clarity and accuracy in lineup filtering. Changed variable names for consistency and adjusted mask conditions to enhance player selection criteria.
6fbfae9

James McCool commited on

Add debug print statements in hedging_preset.py to output player and lineup data during processing. Adjusted lineup target calculations to use list size directly, enhancing clarity in the lineup generation logic.
4ed60b8

James McCool commited on

Remove sorting by 'median' in hedging_preset.py to simplify the return of the top lineups based on the specified target. This change streamlines the output and focuses on the desired number of lineups without additional sorting criteria.
433242b

James McCool commited on

Refactor hedging_preset.py to use a configurable list size for top owned players. This change enhances flexibility in player selection and adjusts lineup target calculations accordingly.
2bbbfdd

James McCool commited on

Update sorting criteria in hedging_preset.py to use 'ownership' instead of 'Own'. This change improves the accuracy of player selection by aligning with the updated data structure.
33beedc

James McCool commited on

Update import statements in hedging_preset.py to reflect new module structure. This change ensures proper access to small_field_preset and large_field_preset functions, enhancing code organization and maintainability.
10c821a

James McCool commited on

Replace distribute_preset with hedging_preset to manage player exposure in lineup generation. Update app.py to reflect the new preset option and remove the obsolete distribute_preset function. This change enhances the flexibility of lineup strategies by allowing users to hedge against high-exposure players while maintaining performance metrics.
119b2bf

James McCool commited on