We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rv_discrete
>>> from sppl.distributions import rv_discrete >>> from sppl.spe import DiscreteLeaf >>> d1 = rv_discrete(values=((1, 2), (.5, .5))) >>> d2 = rv_discrete(values=((1, 2), (.8, .2))) >>> l1 = Id("X") >> a >>> l2 = Id("X") >> b >>> l1 == l2 True
The problem is that scipy does not store the values under the kwds in the frozen rv_discrete object, that is
values
kwds
>>> l1.dist.kwds {} >>> l2.dist.kwds {}
and so the equality logic checking passes: https://github.com/probcomp/sppl/blob/efff34fb3d3703247dd7001c36970069c5ac3825/src/spe.py#L828-L836
The kwds field is populated by scipy for all other distributions norm, poisson, etc.
norm
poisson
The text was updated successfully, but these errors were encountered:
.name
No branches or pull requests
The problem is that scipy does not store the
values
under thekwds
in the frozen rv_discrete object, that isand so the equality logic checking passes:
https://github.com/probcomp/sppl/blob/efff34fb3d3703247dd7001c36970069c5ac3825/src/spe.py#L828-L836
The
kwds
field is populated by scipy for all other distributionsnorm
,poisson
, etc.The text was updated successfully, but these errors were encountered: