-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: increase clarity of zerosum_axes
description for py.ZeroSumNormal
#6459
Comments
We could rename it to https://www.pymc.io/projects/docs/en/stable/learn/core_notebooks/dimensionality.html#id1 Other PyMC components (e.g. shape argument, mixtures, rewrites) assume this is the case. |
Better yet, the plural |
Yeah that's what I meant, I always mix the two. Data datum :P |
Is this still waiting to be updated? I could take that |
As far as I know, nobody has tackled this issue. Feel free... |
To sum up, because above you've thrown quite a lot of ideas: |
Right now setting |
What do you think about the 'check_zerosum_axes' ? It directly refers to the param we're changing, but on the other hand to also provide backward support for old function names would introduce a lot of mess into the code. So we could just leave it as it is for now |
That's an internal function, you can rename it just fine |
* added n_zerosum_axes and added backwards compatibility for previous parameter name * fixed typo that caused the zerosum_axes param not to be saved correctly in the new param * adapted tests to use n_zerosum_axes --------- Co-authored-by: Michal Raczycki <michalraczycki@macbook-pro-michal.home>
Closed via #6522 |
Issue with current documentation:
Tagging @aseyboldt and @AlexAndorra
The current docs for the
zerosum_axes
kwarg forZeroSumNormal
is a little unclear, or perhaps slightly ambiguous, and could lead to incorrect parsing by readers.Currently:
When I read this initially I parsed that as "Number of the axis along which the zero-sum constraint is enforced". Based on that (incorrect) reading of the sentence I then passed
0
to thezerosum_axes
, which then resulted in an error.I then thought that this might be an off by 1 error in how the
zerosum_axes
was processed. But then I got input from others that finally corrected my understanding.The way how it works, by choosing the number of axes, counting from the last forwards, means that it is not possible to use this kwarg to state that you only want the first (of multiple) axes to have the zero sum constraint.
There is a relevant warning on the page at the moment:
But I'm not convinced that's as accurate or as helpful as it could be. In my particular use case, I have a 2D ZeroSumNormal and want the sum to zero constraint to be applied only to the first (0th) dimension.
Idea or request for content:
dims
and then transpose, or usemoveaxis
to get thedims
in the order that a user needs.zerosum_axes
operates from the first axis forward, or the final axis backwards.The text was updated successfully, but these errors were encountered: