pymc3 Questions

1

I've tried to install pymc3 but the dependency issue still remained. C:\Users\sykan>conda install -c conda-forge pymc3 Channels: - conda-forge - defaults Platform: win-64 Collecting package me...
Ropeway asked 27/11, 2023 at 23:41

0

I am importing pymc3 and theano. Using jupyter notebook, python version 3.11.5.I have installed theano 1.0.5 and pymc3 3.11.4. However when I import theano and pymc3 as below: import numpy as np im...
Mccorkle asked 3/10, 2023 at 13:40

3

Solved

As I understand it, context managers are used in Python for defining initializing and finalizing pieces of code (__enter__ and __exit__) for an object. However, in the tutorial for PyMC3 they show...
Leucocyte asked 14/8, 2018 at 20:35

1

Recently, I upgraded macOS to macOS15 (Catalina) with the latest Anaconda Navigator (with Python 3.8). When I run pymc3, I encountered: INFO (theano.gof.compilelock): Waiting for existing lock by p...
Crandall asked 12/8, 2020 at 13:29

1

I'm new to using pymc3, I've read Bayesian Methods for Hackers and done my best to work through existing survival analysis tutorials in pymc3. However, I don't understand how to write/interpret the...
Insatiable asked 24/10, 2021 at 21:29

1

I am struggling to implement a linear regression in pymc3 with a custom likelihood. I previously posted this question on CrossValidated & it was recommended to post here as the question is more...
Mccutchen asked 31/8, 2021 at 16:58

4

I am trying to use pymc3 in an ipynb on Google Colab. Here is my code: regression_conjugate = pm.Model() with regression_conjugate: sigma2 = pm.InverseGamma("sigma2",alpha = 0.5*nu0,beta=0.5*lam...
Strachey asked 22/4, 2020 at 10:32

2

Solved

I'm still learning the basics of working with PyMC3 so hopefully this isn't too painfully obvious in the documentation already. The basic idea is that I have put together my model, sampled it a bun...
Superordinate asked 26/6, 2017 at 17:5

2

I am new to working with pymc3 and I am having trouble generating an easy-to-read traceplot. I'm fitting a mixture of 4 multivariate gaussians to some (x, y) points in a dataset. The model runs fin...
Used asked 3/4, 2017 at 19:57

2

I run into a common problem I'm wondering if someone can help with. I often would like to use pymc3 in two modes: training (i.e. actually running inference on parameters) and evaluation (i.e. using...
Crevasse asked 21/10, 2015 at 0:43

3

Solved

I'm attempting to write a custom Theano Op which numerically integrates a function between two values. The Op is a custom likelihood for PyMC3 which involves the numerical evaluation of some integr...
Baluster asked 8/3, 2017 at 17:55

3

In pymc3 how does one configure a truncated normal prior? In pymc2 it's pretty straightforward (below), but in pymc3 it seems there is no longer a truncated normal distribution available. Pymc2: ...
Poky asked 18/9, 2015 at 3:49

1

Solved

I am using the following code to create a simple Model with PyMC3: import pymc3 as pm import theano.tensor as tt with pm.Model() as model: p = pm.Uniform("freq_cheating", 0, 1) p_skewed = pm.De...
Paracasein asked 3/11, 2018 at 8:9

2

Solved

I've been trying to implement Bayesian Linear Regression models using PyMC3 with REAL DATA (i.e. not from linear function + gaussian noise) from the datasets in sklearn.datasets. I chose the regres...
Hirsh asked 19/5, 2016 at 2:6

1

Solved

I am aware of the mathematical differences between ADVI/MCMC, but I am trying to understand the practical implications of using one or the other. I am running a very simple logistic regressione exa...
Vernice asked 28/9, 2018 at 15:50

1

Solved

I am struggling with implementing a model where the concentration factor of the Dirichlet variable is dependent on another variable. The situation is the following: A system fails due to faulty c...
Mendacious asked 20/9, 2018 at 16:36

2

Solved

I am trying to run the following model, but it fails during compilation: import numpy as np import pymc3 as pm def sample_data(G=1, K=2): # mean proportion ([0,1]) for each g p_g = np.random.b...

1

Solved

I am learning PyMC3 for Bayesian modeling. You can create a model and sample with: import pandas as pd import pymc3 as pm # obs is a DataFrame with a single column, containing # the observed valu...
Braces asked 13/4, 2018 at 21:14

2

There are cases when I'm not actually interested in the full posterior of a Bayesian inference, but simply the maximum likelihood (or maximum a posterior for suitably chosen priors), and possibly i...
Compellation asked 20/11, 2016 at 12:10

1

I'm still learning PYMC3, but I cannot find anything on the following problem in the docs. Consider the Bayesian Structure Time Series (BSTS) model from this question with no seasonality. This can ...
Cellarage asked 22/8, 2017 at 23:45

1

I'm relatively new to PYMC3 and I'm trying to implement a Bayesian Structure Time Series (BSTS) without regressors, for instance the model fit here in R. The model is as follows: I can implement...
Same asked 21/8, 2017 at 23:21

3

Solved

I failed to fit a method belonging to an instance of a class, as a Deterministic function, with PyMc3. Can you show me how to do that ? For simplicity, my case is summarised below with a simple ex...
Cromer asked 13/2, 2017 at 13:22

1

Solved

Is it possible to incrementally update a model in pyMC3. I can currently find no information on this. All documentation is always working with a priori known data. But in my understanding, a Bayes...
Sorb asked 29/11, 2016 at 16:26

1

Solved

What are the returned values of find_MAP in pymc3 ? It seems that pymc3.Normal and pymc3.Uniform variables are not considered the same: for pymc3.Normal variables, find_MAP returns a value that lo...
Probabilism asked 9/2, 2017 at 21:12

1

Solved

I just finished the Bayesian Analysis in Python book by Osvaldo Martin (great book to understand bayesian concepts and some fancy numpy indexing). I really want to extend my understanding to bayes...

© 2022 - 2024 — McMap. All rights reserved.