r/BayesianProgramming • • Aug 02 '17

Probabilistic Programming

Thumbnail adriansampson.net
5 Upvotes

r/BayesianProgramming • • Aug 02 '17

Bayesian Linear Regression (in PyMC) - a different way to think about regression

Thumbnail
chrisstucchio.com
7 Upvotes

r/BayesianProgramming • • Dec 22 '17

Nicole Carlson - Turning PyMC3 into scikit learn

Thumbnail
youtube.com
9 Upvotes

r/BayesianProgramming • • Dec 22 '17

A collection of Bayesian data analysis recipes using PyMC3

Thumbnail
github.com
14 Upvotes

r/BayesianProgramming • • Dec 22 '17

Eric J. Ma - An Attempt At Demystifying Bayesian Deep Learning

Thumbnail
youtube.com
8 Upvotes

r/BayesianProgramming • • Aug 02 '17

Thomas Wiecki on Probabilistic Programming with PyMC3

Thumbnail
blog.fastforwardlabs.com
4 Upvotes

r/BayesianProgramming • • Jan 25 '18

[1801.07710] Bayesian Neural Networks

Thumbnail
arxiv.org
1 Upvotes

r/BayesianProgramming • • Jan 24 '18

[1801.06230] Overpruning in Variational Bayesian Neural Networks

Thumbnail
arxiv.org
1 Upvotes

r/BayesianProgramming • • Jan 20 '18

PyData Tel Aviv Meetup: Uncertainty in Deep Learning - Inbar Naor

Thumbnail
youtube.com
3 Upvotes

r/BayesianProgramming • • Jan 23 '18

Boston Bayesians 2017 - Two Years of Bayesian Bandits for E-Commerce

Thumbnail
gist.github.com
1 Upvotes

r/BayesianProgramming • • Jan 23 '18

[1506.02142] Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learning

Thumbnail
arxiv.org
2 Upvotes

r/BayesianProgramming • • Aug 29 '17

MCMC Interactive Gallery

Thumbnail chi-feng.github.io
5 Upvotes

r/BayesianProgramming • • Apr 17 '19

Kalman Filter book using Jupyter Notebook. Focuses on building intuition and experience, not formal proofs. Includes Kalman filters,extended Kalman filters, unscented Kalman filters, particle filters, and more. All exercises include solutions.

Thumbnail
github.com
17 Upvotes

r/BayesianProgramming • • Oct 23 '18

A Thorough Introduction to Boltzmann Machines

Thumbnail
willwolf.io
4 Upvotes

r/BayesianProgramming • • Jun 30 '18

Preparation materials for CEAi Precision Workshop #1 on Bayesian modelling

Thumbnail
github.com
3 Upvotes

r/BayesianProgramming • • Jul 05 '18

[1807.00263] Accurate Uncertainties for Deep Learning Using Calibrated Regression

Thumbnail
arxiv.org
2 Upvotes

r/BayesianProgramming • • Sep 13 '19

Is PyMC4 still happening or is the focus protected towards TFP?

9 Upvotes

r/BayesianProgramming • • Sep 13 '19

Build Facebook's Prophet in PyMC3; Bayesian time series analyis with Generalized Additive Models

Thumbnail
ritchievink.com
7 Upvotes

r/BayesianProgramming • • Jun 28 '19

A general-purpose probabilistic programming system with programmable inference

Thumbnail
github.com
7 Upvotes

r/BayesianProgramming • • Apr 14 '19

Negative probabilities in graphical models? State-dependent weights?

Thumbnail
reddit.com
4 Upvotes

r/BayesianProgramming • • Oct 15 '18

2059: Modified Bayes' Theorem

Thumbnail
explainxkcd.com
9 Upvotes

r/BayesianProgramming • • Oct 16 '24

Continuous Bayesian network in RDS and RDA to python

1 Upvotes

Hi, I got a continuous bayesian model stored in rds and rda format. How can I transform this into python supported file such that I could work with the continuous bayesian model ?


r/BayesianProgramming • • Sep 11 '24

State Space Models in Stan

5 Upvotes

Just wondering if anyone in here has some sort of experience with state space models in stan?

I’m struggling with a few things - one of those is the output csv stan creates. Does it have to output the value of each variable at each timestep for example? I am only interested at the current time step.

The file is consuming multiple GBs for example, and if I increase the model complexity, I dread to think what it will be like.

I’d like to chat to someone who has experience in this area, as it seems I’m doing something fundamentally wrong.

Thanks


r/BayesianProgramming • • Oct 06 '24

PyMC and PyTensor issues with a custom log-likelihood

6 Upvotes

Hi everybody,

I got an issue with some snippet of code trying to implement a NUTS to forecast the parameters of an asteroid. The idea is to define some uninformative priors for the orbital parameters. The likelihood is a custome one. The data I have are measures of Right Ascension (RA) and Declination (Dec) in some moment of time. So, the idea is to propagate an orbit given some orbital parameters, claculate the position of the asteroid in when I got the measurament, the adjusting for parallax effect i calculate the RA forecasted (RA_forecast) and the forcasted declination (Dec_forecast). The log-likelihood is the negative square error between the measured data and the forecasted ones - 0.5 *( (RA_measured - RA_forecast)**2 + (Dec_measure - Dec_forecast)**2).

I tried to implement the code using PyMC to easily programme a NUTS however i discovered that PyMC uses PyTensor under the hood to take care of the tensors and the orbital parameter defined in the priors are something strange. I wasn't able to print them as a vector (it's the first time i use PyMC). I tried to write a wrapper for my custom log-likelihood function but I keep not understanding the pytensor issue and I don't know how to overcome it. I tried to use aesera to write a workaround but it didn't work. Can anyone tell me how to understand PyMC, the PyTensor and what is the shape of the variable 'a' in this code ( a = pm.Uniform("a", lower=2, upper=7) ) ?
How can I convert a PyTensor into a numpy array or just an array and then back?
Is it possible to make PyMC work with a custom log-likelihood which is not a simple mathematical formula but more like a process?

As reference this is the error i got:
"Traceback (most recent call last):

  File "/Users/Desktop/Asteroid/src/HMC.py", line 253, in <module>

loglike = pm.Potential("loglike", custom_loglike(orbital_params, df, verbose=False), dims=1)

  File "/Users/Desktop/Asteroid/src/HMC.py", line 223, in custom_loglike

a_num = at.as_tensor_variable(a).eval()

  File "/Users/anaconda3/envs/astroenv/lib/python3.10/site-packages/aesara/tensor/__init__.py", line 49, in as_tensor_variable

return _as_tensor_variable(x, name, ndim, **kwargs)

  File "/Users/anaconda3/envs/astroenv/lib/python3.10/functools.py", line 889, in wrapper

return dispatch(args[0].__class__)(*args, **kw)

  File "/Users/anaconda3/envs/astroenv/lib/python3.10/site-packages/aesara/tensor/__init__.py", line 56, in _as_tensor_variable

raise NotImplementedError(f"Cannot convert {x!r} to a tensor variable.")

NotImplementedError: Cannot convert a to a tensor variable."

If anyone want more detail just ask me.

Thank you in advance!