Title: bpo-41513: Make steps after the loop consistent with the loop body by rhettinger · Pull Request #22315 · python/cpython · GitHub
Open Graph Title: bpo-41513: Make steps after the loop consistent with the loop body by rhettinger · Pull Request #22315 · python/cpython
X Title: bpo-41513: Make steps after the loop consistent with the loop body by rhettinger · Pull Request #22315 · python/cpython
Description: Make the post-loop code more consistent with the loop body. Improves internal accuracy by not prematurely combining the separate accumulators. Accuracy measurements. "hypot3" is current baseline. "hypot12" includes this PR. Column 1 is the number of dimensions. Column 2 is the weighted average number of bits of accuracy (higher is better). Column 3 is the algorithm. Column 4 has counts for number of bits of accuracy, (104, 111) means 111 cases where the accuracy was 104 bits: $ python3.9 best_frac.py n=2 108.69 hypot3 [(104, 111), (105, 1924), (106, 10415), ... n=2 108.93 hypot12 [(104, 43), (105, 926), (106, 7569), ... n=3 108.22 hypot3 [(103, 1), (104, 170), (105, 3060), (106, 13216), ... n=3 108.47 hypot12 [(104, 55), (105, 1355), (106, 9510), ... n=5 107.96 hypot3 [(103, 4), (104, 300), (105, 4188), (106, 15269), ... n=5 108.17 hypot12 [(104, 133), (105, 1772), (106, 12429), ... n=10 107.77 hypot3 [(103, 20), (104, 920), (105, 6295), (106, 17161), ... n=10 107.97 hypot12 [(103, 2), (104, 357), (105, 3351), (106, 15103), ... n=20 107.74 hypot3 [(103, 56), (104, 895), (105, 6319), (106, 17725), ... n=20 107.91 hypot12 [(103, 13), (104, 390), (105, 3898), (106, 15418), ... n=50 107.54 hypot3 [(103, 35), (104, 1068), (105, 8344), (106, 20028), ... n=50 107.70 hypot12 [(103, 8), (104, 484), (105, 5360), (106, 18953), ... n=100 107.17 hypot3 [(102, 1), (103, 138), (104, 2516), (105, 11646), (106, 24699), ... n=100 107.30 hypot12 [(102, 1), (103, 37), (104, 1513), (105, 9966), (106, 23976), ... n=1000 104.64 hypot3 [(100, 12), (101, 661), (102, 6047), (103, 19302), (104, 27590), (105, 21319), (106, 12119), ... n=1000 104.70 hypot12 [(100, 11), (101, 595), (102, 5524), (103, 18350), (104, 27514), (105, 21928), (106, 12718), ... https://bugs.python.org/issue41513
Open Graph Description: Make the post-loop code more consistent with the loop body. Improves internal accuracy by not prematurely combining the separate accumulators. Accuracy measurements. "hypot3" is current ...
X Description: Make the post-loop code more consistent with the loop body. Improves internal accuracy by not prematurely combining the separate accumulators. Accuracy measurements. "hypot3" is ...
Opengraph URL: https://github.com/python/cpython/pull/22315
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1412f2f4-6b0a-6fb8-0e54-fa847c8e3124 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A438:2518BB:834B83:A812B7:696B1A8F |
| html-safe-nonce | 44a3182c4e79f9ee48a8271869c411bfd652f15186984e0d9b6835330fedf638 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDM4OjI1MThCQjo4MzRCODM6QTgxMkI3OjY5NkIxQThGIiwidmlzaXRvcl9pZCI6IjEwNDgzMDc0NTg5Mzg0NDQ0MzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 90474de057d35f23bc8d2c1983747223987b531a94a990e83da9f0b5217aa85a |
| hovercard-subject-tag | pull_request:489590041 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/22315/files |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | Make the post-loop code more consistent with the loop body. Improves internal accuracy by not prematurely combining the separate accumulators. Accuracy measurements. "hypot3" is current ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width