DFS_Portfolio_Manager / global_func /hedging_preset.py

Commit History

Refactor lineup generation logic in hedging_preset.py to improve processing efficiency. Introduced an initialization counter for lineup adjustments and added checks for empty DataFrames before generating lineups. Enhanced debug messages for better visibility into the lineup concatenation process.
55b8b36

James McCool commited on

Update lineup generation logic in hedging_preset.py to adjust lineup target calculations. Changed divisor from 3 to 4 in small_field_preset and large_field_preset functions to improve accuracy in lineup adjustments.
8393233

James McCool commited on

Enhance lineup processing in hedging_preset.py by adding checks for empty DataFrames before generating lineups. This update prevents errors when no lineups are available and improves the clarity of debug messages related to lineup generation.
dca21a5

James McCool commited on

Enhance lineup generation in hedging_preset.py by adding debug print statements for removed and team lineups. This update improves visibility into the lineup processing and ensures all relevant lineups are concatenated for final output.
8d3abd2

James McCool commited on

Add debug print statements in hedging_preset.py to output the count of removed and locked lineups during processing. This change enhances visibility into lineup generation and aids in debugging the lineup filtering logic.
fac0157

James McCool commited on

Add team lineup filtering in hedging_preset.py to enhance lineup generation. Introduced logic to separate teams and calculate removed lineups, improving the accuracy of team-based strategies.
ef7a8b2

James McCool commited on

Remove unused import statement from hedging_preset.py to clean up the code and improve maintainability. This change enhances clarity by eliminating unnecessary dependencies.
bb549d3

James McCool commited on

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