Add volatility preset option in app.py and implement volatility_preset function. Updated lineup generation logic to include new preset for enhanced lineup edge management.
cc0edce
James McCoolcommited 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 McCoolcommited on
Refactor sorting logic in small_field_preset.py to ensure accurate portfolio filtering by utilizing 'Own' for sorting. This change enhances the portfolio distribution process by maintaining consistency in data handling across teams.
d33556d
James McCoolcommited on
Enhance small_field_preset and large_field_preset functions to accept an additional parameter for excluded columns, improving filtering capabilities and lineup accuracy. Update app.py to reflect these changes in preset selections.
1b1db4f
James McCoolcommited on
Refactor large_field_preset and small_field_preset functions to use 'Stack' instead of 'Team' for team-based filtering, ensuring consistency in portfolio adjustments and improving accuracy in lineup targeting.
3cc15e1
James McCoolcommited on
Refactor large_field_preset and small_field_preset functions to enhance lineup targeting: increase slack_var range, implement team-based filtering, and consolidate results into a single DataFrame for improved accuracy in portfolio adjustments.
5ef03d6
James McCoolcommited on
Add large field preset functionality in app.py and implement large_field_preset function for improved lineup targeting. Update small_field_preset function to sort by 'Own' for consistency in portfolio adjustments.
936a186
James McCoolcommited on
Enhance app functionality by adding calculations for the highest owned teams and pitchers based on projections, improving user insights into team ownership trends. Refactor small_field_preset function to ensure consistent DataFrame structure by sorting working portfolio by median before returning results.
4507308
James McCoolcommited on
Refactor small_field_preset function to ensure consistent DataFrame structure by resetting the index after filtering and sorting the working portfolio by Median before returning results, improving accuracy in lineup selection.
a6d3a93
James McCoolcommited on
Update small_field_preset function to reset index after filtering working portfolio by Finish_percentile, ensuring consistent DataFrame structure for subsequent calculations.
cd18aa9
James McCoolcommited on
Enhance preset selection in app.py: add a dropdown for choosing presets and update lineup target input label, improving user experience and interaction. Update small_field_preset function to filter working portfolio based on Finish_percentile, ensuring more accurate portfolio adjustments.
82d3e88
James McCoolcommited on
Refactor slack_var handling in small_field_preset function: change iteration from float to integer and adjust calculation for curr_own_type_max to improve accuracy in portfolio adjustments.
17c9148
James McCoolcommited on
Fix range definition in small_field_preset function: change slack_var initialization from integer to float for accurate iteration, ensuring proper functionality in portfolio adjustments.
6610c83
James McCoolcommited on
Add small field preset functionality in app.py: integrate new preset options for lineup targeting, enhancing user experience and providing better control over portfolio management.