-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add transform_coords abstract method. SimplexTransform drops last coo… #7913
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
base: main
Are you sure you want to change the base?
Conversation
…rdinate. All others added identity function. Fixes pymc-devs#7907
|
Thanks for opening this! Docs are failing because you missed adding |
Have a subclass of Transform that behaves like that, and use that? Why mixin? |
Actually all these with |
Mixins are cool and hip. Anyway a subclass would accomplish the same thing as well, and I have no strong preference for one over the other. |
I just don't see what it accomplishes, seems more complex than it needs to be |
I guess it's meant to give classes a more "modular" feel? It's not that a transfomer that doesn't mutate coords isn't a transformer (it is), it just also a coordinate transformation behavior defined by a |
Let's do it when we have a reason for needing that modularity. These are not really things we're composing or intending to in the foreseeable future |
Like I said, I don't object to a subclass. I'm just making the case for a mixin. |
I object to a mixin and I'm not making a case but I can |
Description
Related Issue
transform_coords
method toTransform
method to automatically label unconstrained draws #7907Checklist
Type of change
📚 Documentation preview 📚: https://pymc--7913.org.readthedocs.build/en/7913/