Enhance player selection handling in predict_dupes function
c283108
James McCoolcommited on
Add player similarity score calculation to predict_dupes function
dd908a8
James McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited 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 McCoolcommited on
Remove limit on concatenation in distribute_preset function to include all entries of the working portfolio, enhancing data completeness while maintaining sorting by 'Finish_percentile'.
6fa0eb5
James McCoolcommited on
Limit concatenation in distribute_preset function to the top 5 entries of the working portfolio to enhance performance and maintain focus on the most relevant data.
0808078
James McCoolcommited on
Enhance portfolio concatenation in distribute_preset function by increasing the limit to the top 10 entries and adding a step to remove duplicates based on 'median', 'salary', and 'Own' for improved data relevance and accuracy.
efe0fbf
James McCoolcommited on
Limit concatenation in distribute_preset function to the top 5 entries of the working portfolio to further enhance performance and focus on the most relevant data.
47d93c4
James McCoolcommited on
Limit concatenation in distribute_preset function to the top 10 entries of the working portfolio to enhance performance and maintain focus on the most relevant data.
b3ed56e
James McCoolcommited on
Update preset label in app.py for clarity and consistency
84a7686
James McCoolcommited on
Update debug print statement in distribute_preset function to display only the top 10 entries of the working portfolio for improved clarity during execution.
f054296
James McCoolcommited on
Add debug print statement in distribute_preset function to output working portfolio for better traceability during execution.
3a91762
James McCoolcommited on
Refactor filtering logic in distribute_preset function to improve handling of 'Finish_percentile' thresholds. Introduced a variable for finish threshold to enhance code readability and maintain accurate portfolio selection across all finishing ranges.
f0036dd
James McCoolcommited on
Fix variable reference in distribute_preset function to correctly use 'Weighted Own' for filtering logic, ensuring accurate portfolio selection based on ownership thresholds.
b529706
James McCoolcommited on
Refactor distribute_preset function to improve filtering logic for 'Finish_percentile' by handling edge cases for the first and last finishing ranges, ensuring accurate portfolio selection and maintaining sorting by 'median' in descending order.
746f258
James McCoolcommited on
Update sorting logic in distribute_preset function to sort 'median' in descending order for improved portfolio selection accuracy
b9ea55a
James McCoolcommited on
Update preset option in app.py to correct wording for 'Distributed' selection
b35b9b7
James McCoolcommited on
Add distribute_preset function and update app.py for preset selection
5a5c5db
James McCoolcommited on
Refactor large_field_preset function to streamline player removal logic by eliminating unnecessary iterations and simplifying the exposure tracking process. Ensure sufficient lineups are generated before finalizing selections, enhancing overall efficiency and accuracy.
d0e6684
James McCoolcommited on
Enhance large_field_preset function to improve player exposure tracking by implementing a mechanism to remove high-exposure players across iterations, ensuring lineup integrity and preventing excessive ownership. Adjust logic to check for sufficient lineups before finalizing selections.
73d2fb0
James McCoolcommited on
Refactor large_field_preset function to streamline the portfolio selection process by removing unnecessary iterations and simplifying the logic for team-based filtering, enhancing efficiency and lineup accuracy.
d38df13
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 function to adjust filtering criteria, replacing 'Finish_percentile' with 'Own' for team-based selection, enhancing accuracy in lineup targeting and improving the logic for dropping rows based on ownership thresholds.
5830bfb
James McCoolcommited on
Refactor large_field_preset function to simplify ranking logic by removing median and finish percentile rankings, and adjust filtering criteria to focus on 'Finish_percentile' for team-based selection, enhancing accuracy in lineup targeting.
1107ea4
James McCoolcommited on
Remove filtering of working_portfolio by 'Lineup Edge' in large_field_preset function to allow for broader selection of portfolios, enhancing lineup options.
88b7968
James McCoolcommited on
Update ranking logic in large_field_preset function to sort 'median' in descending order and 'Finish_percentile' in ascending order, enhancing accuracy in team-based filtering and lineup targeting.
59d5fe8
James McCoolcommited on
Refactor large_field_preset function to improve team-based filtering by introducing median and finish percentile rankings for enhanced sorting accuracy. Clean up temporary columns after processing to maintain DataFrame integrity.
471e1a6
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 info message in Presets section of app.py to indicate ongoing testing status, enhancing user awareness of feature readiness.
f591d4e
James McCoolcommited on
Refactor large_field_preset function to improve sorting logic: change the final return statement to sort by 'Finish_percentile' instead of 'Own', ensuring more accurate lineup targeting based on performance metrics.
ba8ea34
James McCoolcommited on
Update preset options in app.py: modify the small field preset selection to include more descriptive labels, enhancing clarity for users when choosing lineup configurations.
c7d3c05
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
Comment out calculations for highest owned teams and pitchers in app.py to streamline functionality and focus on essential features, while maintaining the option for future use.
ab5ff8c
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
Implement form submission for small field preset in app.py: add a submit button to apply lineup target changes, enhancing user interaction and ensuring updates to the working frame are only processed upon user confirmation.
737b2a7
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.
43df572
James McCoolcommited on
Refine custom export row addition in app.py: update logic to use head for selecting rows, ensuring accurate concatenation of selected rows from the merge DataFrame and improving data integrity in the export process.
70d6b20
James McCoolcommited on
Refine row selection for custom export in app.py: replace selectbox with number input for selecting rows, enhancing user experience and ensuring accurate row addition from the merge DataFrame.
fc2be61
James McCoolcommited on
Update custom export selection in app.py: replace multiselect with selectbox for row selection, allowing users to select rows from the top of the DataFrame, and adjust concatenation logic to include selected rows more intuitively.
4c4a480
James McCoolcommited on
Refine custom export logic in app.py: update the condition to check for 'export_merge' in session state, enhancing error handling and ensuring smoother user interactions when selecting rows for custom export.