Commit History

Update preset options in app.py to improve lineup generation accuracy. Changed 'Large Field (Finish Percentile / Edge)' to 'Large Field (Manage Similarity)' and adjusted corresponding logic in the form submission process.
8c81703

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

Refactor lineup selection logic in large_field_preset.py to improve accuracy and efficiency. Replaced the previous iterative approach with a method that calculates evenly spaced target similarity scores, ensuring a more precise selection of lineups based on similarity while avoiding duplicates.
2f8b929

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

Update sorting and ownership calculations in large_field_preset.py to use 'median' instead of 'Finish_percentile' and 'Own'. This change improves accuracy in lineup generation by aligning calculations with the updated data structure.
c1137d7

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

Refactor player filtering and portfolio distribution logic in distribute_preset.py to streamline the process of removing high-exposure players. This update enhances the accuracy of lineup generation by ensuring that the final portfolio meets the lineup target while maintaining performance metrics, and improves the handling of player selection based on similarity scores.
eb3c53f

James McCool commited on

Limit player removal iterations in distribute_preset.py to a maximum of 10 to prevent infinite loops during portfolio distribution. This change enhances the stability of the player filtering process while maintaining the accuracy of lineup generation.
3a9fcee

James McCool commited on

Refactor player removal and portfolio filtering logic in distribute_preset.py to improve accuracy in lineup generation. This update introduces a mechanism to continuously remove high-exposure players and ensures that the final portfolio meets the lineup target while maintaining performance metrics.
587326c

James McCool commited on

Update portfolio concatenation logic in distribute_preset.py to limit the number of players added based on lineup target. This change improves the accuracy of the distribution process by ensuring that only a calculated subset of players is included in the final portfolio.
beef2ec

James McCool commited on

Update sorting order in distribute_preset.py to prioritize players with the highest median values. This change enhances the accuracy of the portfolio distribution process by ensuring that the top players are selected based on their performance metrics.
dbc0343

James McCool commited on

Fix indentation issue in player removal logic in distribute_preset.py to ensure proper application of the filtering function. This change improves the accuracy of player exclusion during portfolio distribution.
bce15f0

James McCool commited on

Fix player removal logic in distribute_preset.py to correctly filter out players not in the player_out list. This change enhances the accuracy of the portfolio distribution process by ensuring only relevant players are retained.
3df4bec

James McCool commited on

Add debug print statement in distribute_preset.py to display the top 10 rows of the working portfolio. This change aids in verifying the filtering process and ensures the accuracy of player selection during distribution.
717655e

James McCool commited on

Sort working portfolio by 'median' before resetting index in distribute_preset.py to enhance player selection accuracy. This change ensures that the highest median values are prioritized in the distribution process.
2c35cf4

James McCool commited on

Update player column selection logic in distribute_preset.py to reference the correct portfolio DataFrame. This change ensures that the player filtering process accurately reflects the current portfolio structure, enhancing the overall functionality of the distribution process.
8125d78

James McCool commited on

Refactor player removal logic in distribute_preset.py to utilize a list of players with the lowest lineup counts. This change enhances the portfolio distribution process by ensuring that the least favorable players are excluded from the lineup, improving overall selection accuracy.
1bd74a1

James McCool commited on

Refactor player selection logic in distribute_preset.py to improve clarity by explicitly defining columns used for player masking. This change enhances the readability of the code and ensures that only relevant columns are considered during the player filtering process.
698043b

James McCool commited on

Enhance portfolio distribution logic in distribute_preset.py by adding player exposure calculations and refining the handling of 'Similarity Score'. This update improves the accuracy of player selection and provides a summary of player exposure in the final output, ensuring a more comprehensive analysis of the lineup distribution process.
50f79c6

James McCool commited 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 McCool commited on

Refactor portfolio distribution logic in distribute_preset.py to group by 'Stack' and update sorting criteria to 'median'. This change improves the accuracy of portfolio filtering by ensuring the correct metrics are used for both selection and final output.
4c00913

James McCool commited on

Update sorting logic in distribute_preset.py to prioritize 'Finish_percentile' over 'median' for improved portfolio filtering accuracy. This change enhances the effectiveness of the distribution process by ensuring the correct metric is used for sorting.
29a9f26

James McCool commited on

Update portfolio distribution logic in distribute_preset.py to utilize 'Similarity Score' for maximum ownership type calculations. This change improves the accuracy of portfolio filtering by ensuring the correct comparison metric is applied, enhancing the overall trimming process.
588f515

James McCool commited on

Enhance portfolio trimming logic in trim_portfolio.py by adding calculation for maximum ownership type value when conditions are not met. This adjustment improves the accuracy of the trimming process by ensuring all relevant ownership metrics are considered.
06c4d25

James McCool commited on

Fix logic for 'Similarity Score' comparison in trim_portfolio.py to ensure correct filtering of portfolios based on performance thresholds. This change enhances the accuracy of the trimming process.
8a560d8

James McCool commited on

Add 'Similarity Score' to data handling in app.py
0b4291c

James McCool commited on

Enhance trimming variable options in app.py and update portfolio trimming logic in trim_portfolio.py to accommodate 'Similarity Score'. This change allows for more flexible data handling and improves the trimming process based on the selected variable.
91ab4fb

James McCool commited on

Optimize player similarity score calculation in predict_dupes function
039bb05

James McCool commited on

Refactor player similarity score calculation in predict_dupes function
1fe4ec0

James McCool commited on

Update excluded columns in app.py to include 'Similarity Score' for improved data handling in portfolio processing.
0b88791

James McCool commited on

Refactor player similarity score calculation in predict_dupes function
4390bf0

James McCool commited on

Enhance player selection handling in predict_dupes function
c283108

James McCool commited on

Add player similarity score calculation to predict_dupes function
dd908a8

James McCool commited on

Limit concatenation in distribute_preset function to the top 10 entries of the working portfolio, removing debug print statements for cleaner output and improved performance in portfolio processing.
42199ca

James McCool commited on

Refactor handling of working portfolio in distribute_preset function to ensure proper checks for empty portfolios and maintain accurate filtering logic. This change improves robustness and clarity in the portfolio processing flow.
22483d5

James McCool commited on

Fix lower threshold calculation in distribute_preset function to ensure accurate filtering based on finishing range. This change enhances the clarity and correctness of the threshold logic.
9387594

James McCool commited on

Update debug print statements in distribute_preset function to include finish and lower threshold values, and sort the top 10 entries by 'Finish_percentile' for enhanced traceability and clarity during execution.
0aa6048

James McCool commited on

Refactor threshold logic in distribute_preset function to improve clarity and accuracy in filtering. Introduced a lower threshold variable for better readability and consistency in handling 'Finish_percentile' across all finishing ranges.
b071238

James McCool commited on

Add debug print statement in distribute_preset function to display the top 10 entries of the working portfolio for improved traceability during execution.
09fca6e

James McCool commited on