fehiepsi / rethinking-pyro

Statistical Rethinking with PyTorch and Pyro
https://fehiepsi.github.io/rethinking-pyro/
MIT License
161 stars 34 forks source link

The contemporary seaborn lineplot() does not accept x and y as positional arguments. #4

Open alxfed opened 1 year ago

alxfed commented 1 year ago

You need to specify the names of the arguments. NOT : ax = sns.lineplot(x, dist.Beta(w + 1, n - w + 1).log_prob(x).exp()) but : ax = sns.lineplot(x=x, y=dist.Beta(w + 1, n - w + 1).log_prob(x).exp()) ... etc.

fehiepsi commented 1 year ago

Thanks @alxfed! The code in this repo is not maintained. Please checkout the numpyro version https://github.com/fehiepsi/rethinking-numpyro for working codes.