DFS_Portfolio_Manager / global_func

Commit History

Refactor exposure_spread function to handle player replacement logic based on lineups_to_remove value. Separate logic for positive and negative adjustments to ensure accurate player exposure management and enhance lineup flexibility.
9034a8a

James McCool commited on

Update lineups_to_remove calculation in exposure_spread function to handle cases where exposure_target is zero, ensuring accurate lineup adjustments based on player exposure.
2371c4f

James McCool commited on

Enhance app.py to include F1 in sport selection and implement position and team variable assignments based on selected sport. Update projections to reflect these variables for GOLF, TENNIS, MMA, NASCAR, and F1, improving data handling for player eligibility.
b9049ff

James McCool commited on

Update position eligibility checks in check_position_eligibility function to correct sport name cases for MMA, Golf, and Tennis. This ensures consistent handling of player positions across different sports.
7f0bbb5

James McCool commited on

Add FLEX eligibility check in check_golf_position_eligibility function to allow 'G' positions for FLEX columns. This enhances player eligibility logic for golf positions.
f35aa8d

James McCool commited on

Implement error handling in exposure_spread function to ensure robust position extraction. If an error occurs during position parsing, fallback to the original position list, enhancing reliability in player eligibility processing.
c0ae0e3

James McCool commited on

Adjust lineups_to_remove calculation in exposure_spread function to apply a 101% factor, refining accuracy in lineup adjustments based on player exposure and target.
b452fab

James McCool commited on

Adjust lineups_to_remove calculation in exposure_spread function to apply a 105% factor, refining accuracy in lineup adjustments based on player exposure and target.
fb33fb9

James McCool commited on

Enhance exposure_spread function by adding salary_max parameter for improved salary filtering and adjusting lineups_to_remove calculation to a 125% factor, refining player selection logic and ensuring existing players are excluded from comparable options.
87bb04e

James McCool commited on

Refactor exposure_spread function to streamline comparable player selection logic, ensuring accurate filtering based on salary, median projections, and position overlap, while maintaining team removal functionality.
38f865e

James McCool commited on

Refine lineups_to_remove calculation in exposure_spread function to ensure accurate adjustment based on player exposure and target, applying a consistent 150% factor for lineup modifications.
0f6f9ba

James McCool commited on

Refactor lineups_to_remove calculation in exposure_spread function to streamline logic, ensuring consistent application of the 150% factor for lineup adjustments.
11220fa

James McCool commited on

Adjust lineups_to_remove calculation in exposure_spread function to apply a 150% factor, enhancing accuracy in lineup adjustments for non-zero target exposure.
45f0bb9

James McCool commited on

Refine lineups_to_remove calculation in exposure_spread function to adjust for non-zero target exposure, improving accuracy in lineup adjustments by applying a 75% reduction factor.
e60e8c4

James McCool commited on

Update lineups_to_remove calculation in exposure_spread function to handle zero target exposure and adjust for non-zero targets, improving accuracy in lineup adjustments.
aa2e7d9

James McCool commited on

Shuffle player rows in exposure_spread function to ensure random selection of players for lineup adjustments, enhancing variability in exposure calculations.
f93672b

James McCool commited on

Refactor exposure_spread function to correctly apply team removal logic to comparable players, ensuring accurate filtering in player comparisons.
54ce19d

James McCool commited on

Enhance exposure_spread function to include an option for removing specified teams, improving flexibility in player comparison and exposure calculations.
1b89d01

James McCool commited on

Enhance dupes calculation in predict_dupes function by adjusting the Finish_percentile formula to include ownership ratio and Contest_Size, improving the accuracy of duplicate predictions.
1046e61

James McCool commited on

Refactor dupes calculation in predict_dupes function to incorporate ownership ratio adjustment based on Contest_Size, enhancing the accuracy of duplicate predictions. Additionally, modify the calculation to use a salary ratio of 50 for improved precision.
70c1c8d

James McCool commited on

Update dupes calculation in predict_dupes function to multiply ownership product by 10, refining the accuracy of duplicate predictions based on ownership metrics and Contest_Size.
4411256

James McCool commited on

Update dupes calculation in predict_dupes function to multiply ownership product by 100, enhancing the accuracy of duplicate predictions based on ownership metrics and Contest_Size.
92c9001

James McCool commited on

Refine dupes calculation in predict_dupes function by adjusting the salary ratio from 100 to 50, enhancing the accuracy of duplicate predictions based on ownership metrics and Contest_Size.
ac3cdbd

James McCool commited on

Adjust dupes calculation in predict_dupes function by modifying the salary ratio from 100 to 50, further refining the accuracy of duplicate predictions based on ownership metrics and Contest_Size.
9b99f7a

James McCool commited on

Refine dupes calculation in predict_dupes function by adjusting the formula to prioritize Contest_Size and ownership metrics, enhancing the accuracy of duplicate predictions.
9324c8a

James McCool commited on

Refine dupes calculation in predict_dupes function by adjusting the salary ratio from 50000 to 49500, improving accuracy in duplicate predictions based on ownership metrics.
bfb331d

James McCool commited on

Refactor dupes calculation in predict_dupes function to correct ownership ratio adjustments, ensuring accurate predictions based on ownership metrics and Contest_Size. This update enhances the overall accuracy of duplicate predictions.
77ebf37

James McCool commited on

Update dupes calculation in predict_dupes function to multiply ownership product by 100, improving accuracy in duplicate predictions based on ownership metrics.
7c9341c

James McCool commited on

Update dupes calculation in predict_dupes function to incorporate ownership ratio adjustment based on Contest_Size, enhancing accuracy in duplicate predictions.
af0c3fb

James McCool commited on

Adjust ownership average calculation in predict_dupes function to a new ratio of 0.33, and add a debug print statement to display key portfolio metrics, enhancing data verification and accuracy in ownership assessments.
6c56d9c

James McCool commited on

Update ownership average calculation in predict_dupes function to reflect a new ratio of 0.66, improving accuracy in ownership metrics for both portfolio and team ownership assessments.
9051c91

James McCool commited on

Refactor ownership ratio adjustments in predict_dupes function to streamline logic for CS2 and LOL, ensuring consistent application of nerf values based on sport type, which enhances prediction accuracy.
a92df2e

James McCool commited on

Update type conversion in predict_dupes function to conditionally apply float32 conversion based on sport variable, enhancing compatibility for non-LOL sports.
37de66c

James McCool commited on

Update player column selection in predict_dupes function to include an additional player, ensuring compatibility with the updated League of Legends (LOL) logic for enhanced prediction accuracy.
aee7e1d

James McCool commited on

Add support for 7 players in League of Legends (LOL) in predict_dupes function, updating salary cap and player column logic to accommodate sport-specific requirements, enhancing prediction accuracy.
a1db6b9

James McCool commited on

Refactor type conversion in predict_dupes function to handle exceptions gracefully, ensuring robust data processing without interruption.
64064b9

James McCool commited on

Add debug print statements in predict_dupes function to display portfolio columns and the first 10 rows, aiding in troubleshooting and data verification.
64ed14c

James McCool commited on

Refactor predict_dupes function to enhance League of Legends (LOL) support, adding specific calculations for ownership percentages and ranks, while maintaining existing logic for CS2. This improves accuracy in player predictions and ensures consistent handling of duplicate calculations across both sports.
b53e467

James McCool commited on

Enhance predict_dupes function to include League of Legends (LOL) alongside CS2 for sport-specific logic, updating conditions for duplicate count calculations and own ratio nerf adjustments to improve accuracy in player predictions.
17b7fee

James McCool commited on

Add support for LOL in app.py and related functions, updating sport selection and eligibility checks across multiple modules to include League of Legends, enhancing overall functionality and user experience.
05f2b9c

James McCool commited on

ping
72c43b1

James McCool commited on

Refactor exposure_spread function to include a new parameter for type_var, enabling sport-specific logic for player eligibility checks and enhancing the accuracy of player replacements based on game type.
9c0b8c6

James McCool commited on

Enhance exposure_spread function to include sport-specific position eligibility checks, ensuring accurate player replacements based on their eligible positions across various sports.
8e462c9

James McCool commited on

Reset index for comparable players in exposure_spread function to ensure consistent DataFrame structure, improving accuracy in player comparisons.
aef223f

James McCool commited on

Update exposure_spread function to correct stack comparison logic by using the 'team' column instead of 'Stack', ensuring accurate filtering of player rows based on stacking criteria.
170fe18

James McCool commited on

Add debug print statement to exposure_spread function to log player rows, aiding in troubleshooting and ensuring accurate filtering of player data.
1a1e2d1

James McCool commited on

Enhance exposure_spread function to include stack comparison for player rows, ensuring accurate filtering based on stacking criteria, similar to the logic applied for comparable players.
761d7bd

James McCool commited on

Add stack comparison logic in exposure_spread function to filter out comparable players based on stacking, enhancing the accuracy of player comparisons.
0725b32

James McCool commited on

Reset index for comparable players in exposure_spread function to ensure consistent DataFrame structure, improving subsequent calculations for player comparisons.
6e04e5f

James McCool commited on

Add position eligibility check in exposure_spread function to filter comparable players based on overlapping positions, improving accuracy in player comparisons.
abd4533

James McCool commited on