Title: implement argument to allow "some" difference between axes totals in ipfp · Issue #1004 · larray-project/larray · GitHub
Open Graph Title: implement argument to allow "some" difference between axes totals in ipfp · Issue #1004 · larray-project/larray
X Title: implement argument to allow "some" difference between axes totals in ipfp · Issue #1004 · larray-project/larray
Description: Some users are complaining the following test in ipfp is too strict and annoying: if str(axis_total) != str(axis0_total): raise ValueError(f"target sum along {axis} (axis {a.axes.index(axis)}) is different than target sum along " f"{axes...
Open Graph Description: Some users are complaining the following test in ipfp is too strict and annoying: if str(axis_total) != str(axis0_total): raise ValueError(f"target sum along {axis} (axis {a.axes.index(axis)}) is d...
X Description: Some users are complaining the following test in ipfp is too strict and annoying: if str(axis_total) != str(axis0_total): raise ValueError(f"target sum along {axis} (axis {a.axes.index(axis)})...
Opengraph URL: https://github.com/larray-project/larray/issues/1004
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"implement argument to allow \"some\" difference between axes totals in ipfp","articleBody":"Some users are complaining the following test in ipfp is too strict and annoying:\r\n```python\r\nif str(axis_total) != str(axis0_total):\r\n raise ValueError(f\"target sum along {axis} (axis {a.axes.index(axis)}) is different than target sum along \"\r\n f\"{axes[0]} (axis {a.axes.index(axes[0])}): {axis_total} vs {axis0_total}\")\r\n```\r\nThe problem is that removing this test or allowing some threshold would make the total value alternate between each axis total during each iteration, systematically ending with the *last* axis sum, making it harder and possibly impossible to reach threshold.\r\n\r\nIn any case, it should be an immediate error if abs(axis_total - axis0_total) >= the_global_convergence_threshold, because that would make the algorithm always end at maxiter with a \"bad\" (unconverged) result.\r\n\r\nOne option would be to distribute the error (axis_total - axis0_total) on all labels of that axis. That should be an option though.","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2022-04-20T14:27:09Z","url":"https://github.com/larray-project/larray/issues/1004"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:24213eff-b68e-edd7-6ece-e19618bb428c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8916:59CDA:2DF43BA:3C5226E:6B001F73 |
| html-safe-nonce | 5432089e4e8aea168f7b80c563e30b5d07853c82b6d005e718f3b74cb7038998 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTE2OjU5Q0RBOjJERjQzQkE6M0M1MjI2RTo2QjAwMUY3MyIsInZpc2l0b3JfaWQiOiIyMDA0ODM0ODc1MjIzMzE4Mzg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 01b3a8955bbccc3e36ba4e9698404a1eca63c9e49e100f0db40c1f9f89be68a2 |
| hovercard-subject-tag | issue:1209771508 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/larray-project/larray/1004/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5ceec9e9c76d5151867f20806b16ff8989394261de14a3fb858644127e43ecde/larray-project/larray/issues/1004 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5ceec9e9c76d5151867f20806b16ff8989394261de14a3fb858644127e43ecde/larray-project/larray/issues/1004 |
| og:image:alt | Some users are complaining the following test in ipfp is too strict and annoying: if str(axis_total) != str(axis0_total): raise ValueError(f"target sum along {axis} (axis {a.axes.index(axis)}) is d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdementen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/larray-project/larray git https://github.com/larray-project/larray.git |
| octolytics-dimension-user_id | 26460981 |
| octolytics-dimension-user_login | larray-project |
| octolytics-dimension-repository_id | 16981067 |
| octolytics-dimension-repository_nwo | larray-project/larray |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16981067 |
| octolytics-dimension-repository_network_root_nwo | larray-project/larray |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width