Skip to content

PR #572: Season blend 90/10 (divisor 80→55) + MIN_PROB 0.57→0.60#441

Merged
jaayslaughter-cpu merged 1 commit into
mainfrom
pr-572-blend-90-10
May 15, 2026
Merged

PR #572: Season blend 90/10 (divisor 80→55) + MIN_PROB 0.57→0.60#441
jaayslaughter-cpu merged 1 commit into
mainfrom
pr-572-blend-90-10

Conversation

@jaayslaughter-cpu
Copy link
Copy Markdown
Owner

@jaayslaughter-cpu jaayslaughter-cpu commented May 15, 2026

Changes

1. Season blend divisor: 80 → 55

  • At day 49 (May 15): 89% 2026 / 11% 2025 (was 61/39)
  • Hits 100% by day 55 ≈ May 21, capped at 1.0

2. MIN_PROB: 0.57 → 0.60

  • Fires the May 15 schedule change (was never wired into APScheduler — baking directly into source)

Summary by cubic

Accelerated season blending to 90% 2026 / 10% 2025 by day 49 (May 15) and 100% by day 55 by reducing the divisor from 80 to 55. Increased MIN_PROB from 0.57 to 0.60 to align with the May 15 schedule change and tighten pick thresholds.

Written for commit 80af002. Summary will update on new commits.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 15, 2026

Warning

Rate limit exceeded

@jaayslaughter-cpu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 31 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a4952032-b268-4b54-b746-d93078cd5b5f

📥 Commits

Reviewing files that changed from the base of the PR and between 6669289 and 80af002.

📒 Files selected for processing (1)
  • tasklets.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch pr-572-blend-90-10

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@deepsource-io
Copy link
Copy Markdown

deepsource-io Bot commented May 15, 2026

DeepSource Code Review

We reviewed changes in 6669289...80af002 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Docker May 15, 2026 5:07a.m. Review ↗
JavaScript May 15, 2026 5:07a.m. Review ↗
Python May 15, 2026 5:07a.m. Review ↗
SQL May 15, 2026 5:07a.m. Review ↗
Secrets May 15, 2026 5:07a.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@jaayslaughter-cpu jaayslaughter-cpu merged commit 951b5d4 into main May 15, 2026
7 of 9 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the MIN_PROB threshold to 0.60 and adjusts the _season_weight_2026 calculation by reducing the divisor to 55.0 in tasklets.py. Feedback indicates that these updates were not mirrored in a duplicate file (api/tasklets.py), which could lead to inconsistent system behavior. Additionally, reviewers suggested updating surrounding comments to reflect the new values and provided a code suggestion to improve the precision of the season weight description.

Comment thread tasklets.py
# At 0.55 with correct multipliers: 2-leg PP needs 55%^2 * 3 - 1 = -9.2% → still
# needs higher prob per leg, but combined_ev gate (+3%) now does the real work.
MIN_PROB = 0.57
MIN_PROB = 0.60 # PR #572: May 15 schedule — raised from 0.57
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The update to MIN_PROB to 0.60 is not reflected in the duplicate file api/tasklets.py (line 288), which still uses 0.57. This inconsistency can lead to divergent behavior across the system. Additionally, the surrounding comments (lines 291 and 293) still refer to a value of 0.55 and should be updated to maintain documentation accuracy.

Comment thread tasklets.py
_season_start = OPENING_DAY # 2026-03-26
_days_played = max(0, (_today_pt() - _season_start).days)
_season_weight_2026 = round(min(1.0, _days_played / 80.0), 3)
_season_weight_2026 = round(min(1.0, _days_played / 55.0), 3) # PR #572: 90/10 by day 49 (May 15)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The season weight divisor update to 55.0 is missing from the duplicate definition in api/tasklets.py (line 2065). Additionally, the comment on line 2434 (context) still refers to game ~80, and the comment on this line (90/10) is slightly imprecise compared to the actual math (89.1%) and the PR description (89/11).

Suggested change
_season_weight_2026 = round(min(1.0, _days_played / 55.0), 3) # PR #572: 90/10 by day 49 (May 15)
_season_weight_2026 = round(min(1.0, _days_played / 55.0), 3) # PR #572: 89/11 by day 49 (May 15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant