diff options
author | Guido van Rossum <guido@python.org> | 2024-02-22 20:23:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 20:23:48 (GMT) |
commit | 4ee6bdfbaa792a3aa93c65c2022a89bd2d1e0894 (patch) | |
tree | 7ad7e56f85ec15887338b86e292670fd60abc9db /Lib/idlelib | |
parent | 1002fbe12e0bd8c9a54bc5addbf5d94a5b35f91f (diff) | |
download | cpython-4ee6bdfbaa792a3aa93c65c2022a89bd2d1e0894.zip cpython-4ee6bdfbaa792a3aa93c65c2022a89bd2d1e0894.tar.gz cpython-4ee6bdfbaa792a3aa93c65c2022a89bd2d1e0894.tar.bz2 |
gh-115727: Reduce confidence even on 100% predicted jumps (#115748)
The theory is that even if we saw a jump go in the same direction the
last 16 times we got there, we shouldn't be overly confident that it's
still going to go the same way in the future. This PR makes it so that
in the extreme cases, the confidence is multiplied by 0.9 instead of
remaining unchanged. For unpredictable jumps, there is no difference
(still 0.5). For somewhat predictable jumps, we interpolate.
Diffstat (limited to 'Lib/idlelib')
0 files changed, 0 insertions, 0 deletions