Prior: Differentiate dims=() and dims=None#649
Conversation
|
Unrelated failure due to pymc-devs/pymc#8106 |
|
Is this a breaking change for configurations that currently use Prior class in deployment? |
|
What is the difference between Prior(...).to_dict() and Prior(..., dims=()).to_dict() |
If dims were not specified, potentially yes, depends what the code on the receiving end of Prior does. If they were explicit, nothing changed |
I'll check and test. |
Pushing new changes, the former doesn't include dims in the dict, the latter includes |
b571139 to
155f743
Compare
|
@williambdean this will break code if and only if it tries to access Otherwise cases where dims were not specified but were supposed to be I can't think of a cleaner transition strategy |
155f743 to
cd7ab35
Compare
b5fc043 to
d54ca63
Compare
d54ca63 to
37a0211
Compare
37a0211 to
e800292
Compare
e800292 to
5c541ea
Compare
This is necessary so we can provide a safe default for the user. Also xdist variables can infer dims implied by the parameters just fine, no reason to require redundancy.
This is a major change as code elsewhere may assume dims are never None