Skip to content
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

Some PyMC warnings with examples #7

Open
maedoc opened this issue Oct 20, 2022 · 1 comment
Open

Some PyMC warnings with examples #7

maedoc opened this issue Oct 20, 2022 · 1 comment

Comments

@maedoc
Copy link

maedoc commented Oct 20, 2022

Thanks for implementing your method in Python. I just started going through the example, and with PyMC v4.2.2 I have warnings like,

/opt/app-root/src/.local/lib/python3.8/site-packages/pymc/variational/opvi.py:165: UserWarning: `tf_n_mc` is not used for KL[MeanField] and ignored
  warnings.warn(f"`{smth}` is not used for {where} and ignored")

and

/opt/app-root/src/.local/lib/python3.8/site-packages/pymc/distributions/logprob.py:126: FutureWarning: joint_logpt has been deprecated. Use joint_logp instead.
  warnings.warn(
/opt/app-root/src/.local/lib/python3.8/site-packages/pymc/model.py:700: FutureWarning: Model.logpt has been deprecated. Use Model.logp instead.
  warnings.warn(
@maedoc
Copy link
Author

maedoc commented Oct 21, 2022

The logpt method is missing in the latest dev version of pymc. I wrote a small wrapper model,

class Model(pm.Model):
    def logpt(self, *args, **kwargs): return self.logp(*args, **kwargs)

edit it seems the call to Model.logpt is here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant