Commit History

Implement vectorized calculations for salary, median, and ownership in app.py to enhance performance and memory efficiency. Refactor reassess_edge and stratification_function to minimize DataFrame copies and improve memory management. Update filtering logic to use boolean masks for better efficiency.
7eef51a

James McCool commited on

Refactor 'Manage Portfolio' logic to directly use reassess_edge for both working and export frames, streamlining data processing and enhancing efficiency.
0543ffc

James McCool commited on

Enhance reassess_edge function by adding max_salary parameter to improve salary handling in the predict_dupes call, ensuring more accurate edge reassessment.
7b2935a

James McCool commited on

Refactor reassess_edge function in reassess_edge.py to improve efficiency by concatenating modified and base frames, simplifying the extraction of updated rows, and enhancing clarity in the logic for processing modified data.
b8a8ac9

James McCool commited on

Refactor app.py to replace predict_dupes calls with reassess_edge for both working and export frames, enhancing the accuracy of edge assessments by utilizing the updated reassess_edge function in reassess_edge.py.
b01e348

James McCool commited on

Refactor dupe adjustment logic in reassess_dupes function of reassess_edge.py to conditionally apply adjustments based on salary_diff, ensuring accurate calculations for positive salary differences while maintaining original dupes for non-positive differences.
aab46fa

James McCool commited on

Update reassess_finish_percentile calculation in reassess_edge.py to use max() instead of min(), ensuring that the finish_percentile does not fall below the sum of a minimum threshold and 'Win%', thereby enhancing the accuracy of lineup assessments.
d28e504

James McCool commited on

Update reassess_finish_percentile calculation in reassess_edge.py to ensure it does not exceed the sum of a minimum threshold and 'Win%', enhancing accuracy in lineup assessments.
d3dffbb

James McCool commited on

Update return logic in reassess_lineup_edge function of reassess_edge.py to use 'Lineup Edge' instead of 'Finish_percentile', ensuring accurate calculations of lineup edge assessments.
dc3d201

James McCool commited on

Refactor dupe rate calculation in reassess_lineup_edge function of reassess_edge.py to use min() instead of clip(), improving clarity and ensuring accurate handling of zero previous dupes.
89ebdd0

James McCool commited on

Update reassess_lineup_edge function in reassess_edge.py to handle cases where previous dupes are zero, ensuring robust calculations by clipping the dupe rate. This change enhances the accuracy of lineup edge assessments.
85907dc

James McCool commited on

Enhance reassess_lineup_edge function in reassess_edge.py to incorporate previous finish_percentile and dupes for improved lineup edge calculations. Update the return logic to better reflect the relationship between finish_percentile and lineup edge, ensuring more accurate assessments.
f61c9fc

James McCool commited on

Refactor reassess_lineup_edge function in reassess_edge.py to improve clarity by using local variables for calculations. Update references to 'Edge' to 'Lineup Edge' for consistency, and adjust column drop logic to retain necessary data for further processing.
85afab8

James McCool commited on

Update reassess_finish_percentile calculation in reassess_edge.py to adjust ownership impact by changing the divisor for own_diff from 2 to 200, improving accuracy in finish_percentile adjustments.
456243b

James McCool commited on

Comment out the column drop logic in reassess_edge function to retain additional data for debugging purposes, enhancing flexibility in data handling.
ad0e07a

James McCool commited on

Refactor reassess_finish_percentile function in reassess_edge.py to remove unnecessary parameters, streamlining the calculation of finish_percentile. Update references in reassess_edge function to align with the new function signature, enhancing code clarity and maintainability.
d12afa6

James McCool commited on

Refactor reassess_finish_percentile function in reassess_edge.py to simplify calculations by using ownership and median differences, improving accuracy in finish_percentile adjustments. Update column drop logic to remove unnecessary columns for cleaner data handling.
9fa6f26

James McCool commited on

Implement reassess_finish_percentile function in reassess_edge.py to recalculate finish_percentile based on ownership and contest size, enhancing accuracy in ownership adjustments. Remove debug print statements from app.py for cleaner code.
8833483

James McCool commited on

Refactor final_dupes calculation in reassess_dupes function to use max() for non-negative values, improving clarity and ensuring accurate ownership adjustments.
7c0c068

James McCool commited on

Update final_dupes calculation in reassess_dupes function to ensure non-negative values by applying a lower clip, enhancing accuracy in ownership adjustments.
a0a80d8

James McCool commited on

Refine reassess_dupes function in reassess_edge.py to enhance the threshold crossing logic for salary adjustments, ensuring accurate reduction of dupes when salaries transition from above to below the threshold, while maintaining clarity and readability.
4f1a07c

James McCool commited on

Enhance reassess_dupes function in reassess_edge.py by implementing a threshold-based adjustment mechanism for dupes, improving accuracy in ownership calculations while removing redundant debug statements for cleaner code.
fe4cd6d

James McCool commited on

Refactor reassess_dupes function in reassess_edge.py to improve clarity by introducing local variables for salary, salary_diff, own_diff, and dupes, enhancing readability while maintaining existing logic for ownership adjustments.
24c4247

James McCool commited on

Add additional debug statements in reassess_dupes function to log detailed calculations and type checks for salary adjustments, further enhancing troubleshooting capabilities.
c4b1445

James McCool commited on

more debugging
a1da977

James McCool commited on

Add debug statement in reassess_dupes function to log salary value, enhancing troubleshooting capabilities for ownership adjustments.
1e2e80c

James McCool commited on

ping
b545121

James McCool commited on

Refactor reassess_dupes function in reassess_edge.py to improve readability by restructuring the return statement, while maintaining the existing logic for salary and ownership adjustments.
bd3e305

James McCool commited on

Add debug statement in reassess_dupes function to log salary and ownership differences, enhancing troubleshooting capabilities for ownership adjustments.
817c616

James McCool commited on

Refactor reassess_dupes function in reassess_edge.py to enhance ownership calculation by incorporating a more detailed salary and ownership adjustment mechanism, improving accuracy in metrics.
4b826cf

James McCool commited on

ping
51fef7b

James McCool commited on

Add debug print statement in reassess_dupes function to log detailed calculations for ownership adjustments, aiding in troubleshooting and validation of metrics.
e4d54f2

James McCool commited on

Update data type handling for salary, median, and ownership difference calculations in reassess_edge.py to improve memory efficiency and precision.
229b9de

James McCool commited on

Update reassess_dupes function in reassess_edge.py to adjust ownership calculation by modifying the salary adjustment factor, enhancing accuracy in ownership metrics.
5b719f3

James McCool commited on

Remove debug print statement from calculate_weighted_ownership_single_row and fix geomean calculation in reassess_edge function for improved accuracy in ownership metrics.
28ad089

James McCool commited on

Add debug print statement for ownership values in calculate_weighted_ownership_single_row to aid in troubleshooting and validation of ownership calculations.
0af5d59

James McCool commited on

Refactor ownership value calculation in calculate_weighted_ownership_single_row to use pd.to_numeric for better handling of non-numeric values, improving robustness in edge reassessment logic.
eba4421

James McCool commited on

Refactor calculate_weighted_ownership function to operate on a single row of ownership values, improving clarity and performance in the reassess_edge function.
a9507f6

James McCool commited on

Optimize ownership calculation in reassess_edge function by directly applying calculate_weighted_ownership_wrapper to selected lineups, improving performance and readability.
07db08b

James McCool commited on

Fix off-by-one error in own_columns generation in reassess_edge function to ensure correct player ownership mapping.
f10f2f5

James McCool commited on

Update reassess_edge function to include maps_dict parameter for improved player ownership mapping in app.py, enhancing edge reassessment logic.
3b360d8

James McCool commited on

Update num_players calculation in reassess_edge function to use salary column index, improving accuracy in player data processing.
88cab61

James McCool commited on

Refactor reassess_lineup_edge function in global_func/reassess_edge.py to simplify the calculation of 'Lineup Edge' by removing unnecessary lambda application, improving code readability and performance.
f9b3b85

James McCool commited on

Refactor reassess_edge function signature in global_func/reassess_edge.py to simplify parameters and update app.py to utilize the new signature, enhancing edge reassessment logic for player data processing.
860cdc8

James McCool commited on

Refactor reassess_lineup_edge function in reassess_edge.py to simplify the application of lineup edge calculations, enhancing code clarity and maintainability.
4edaf5f

James McCool commited on

Rename reassess_edge function to reassess_lineup_edge in reassess_edge.py for clarity, and update references accordingly to improve code readability and maintainability.
b6825dd

James McCool commited on

Fix reassess_dupes function in reassess_edge.py to remove clipping on calculated values, ensuring accurate salary difference assessments for player lineups.
e228296

James McCool commited on

Refactor change_mask logic in reassess_edge.py to filter based solely on median differences, improving accuracy in edge assessments for player lineups.
30c8de0

James McCool commited on

Add reassess_edge function in reassess_edge.py for recalculating lineup metrics based on player performance, and update app.py to utilize this function for improved edge assessments in player lineups.
d015d8c

James McCool commited on

Refactor position eligibility checks in exposure_spread.py to simplify logic for player positions, enhancing readability and maintainability. Update reassess_dupes function in reassess_edge.py to streamline salary difference calculations for improved performance.
d5f1d98

James McCool commited on