b
: from -0.95 to 0.5. Basically, it seems that the model is quite uncertain about the true value of b
, probably because there aren't a lot of data and the priors are quite wide (Normal(0, 10) for the parameters and Uniform for the std). Have you tried with more informative priors, as in the second edition for instance?
#
argon2-cffi 20.1.0 py38h1e8a9f7_2 conda-forge
arviz 0.10.0 py_0 conda-forge
async_generator 1.10 py_0 conda-forge
attrs 20.2.0 pyh9f0ad1d_0 conda-forge
backcall 0.2.0 pyh9f0ad1d_0 conda-forge
backports 1.0 py_2 conda-forge
backports.functools_lru_cache 1.6.1 py_0 conda-forge
blas 1.0 mkl
bleach 3.2.1 pyh9f0ad1d_0 conda-forge
bzip2 1.0.8 he774522_3 conda-forge
ca-certificates 2020.6.20 hecda079_0 conda-forge
certifi 2020.6.20 py38h9bdc248_2 conda-forge
cffi 1.14.3 py38h0e640b1_1 conda-forge
cftime 1.2.1 py38h1e00858_1 conda-forge
colorama 0.4.4 pyh9f0ad1d_0 conda-forge
curl 7.71.1 h4b64cdc_8 conda-forge
cycler 0.10.0 py_2 conda-forge
decorator 4.4.2 py_0 conda-forge
defusedxml 0.6.0 py_0 conda-forge
entrypoints 0.3 py38h32f6830_1002 conda-forge
fastprogress 1.0.0 py_0 conda-forge
freetype 2.10.4 hd328e21_0 conda-forge
h5py 2.10.0 nompi_py38h6053941_105 conda-forge
hdf4 4.2.13 hf8e6fe8_1003 conda-forge
hdf5 1.10.6 nompi_h89124ea_1110 conda-forge
icc_rt 2019.0.0 h0cc432a_1
importlib-metadata 2.0.0 py_1 conda-forge
importlib_metadata 2.0.0 1 conda-forge
intel-openmp 2019.4 245
ipykernel 5.3.4 py38h7b7c402_1 conda-forge
ipython 7.18.1 py38h1cdfbd6_1 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
jedi 0.17.2 py38h32f6830_1 conda-forge
jinja2 2.11.2 pyh9f0ad1d_0 conda-forge
jpeg 9d he774522_0 conda-forge
jsonschema 3.2.0 py_2 conda-forge
jupyter_client 6.1.7 py_0 conda-forge
jupyter_core 4.6.3 py38h32f6830_2 conda-forge
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
kiwisolver 1.2.0 py38h95a2b95_1 conda-forge
krb5 1.17.1 hc04afaa_3 conda-forge
libblas 3.8.0 14_mkl conda-forge
libcblas 3.8.0 14_mkl conda-forge
libcurl 7.71.1 h4b64cdc_8 conda-forge
libgpuarray 0.7.6 hfa6e2cd_1003 conda-forge
liblapack 3.8.0 14_mkl conda-forge
libnetcdf 4.7.4 nompi_h256d12c_105 conda-forge
libpng 1.6.37 ha81a0f5_2 conda-forge
libsodium 1.0.18 h62dcd97_1 conda-forge
libssh2 1.9.0 hb06d900_5 conda-forge
libtiff 4.1.0 h885aae3_6 conda-forge
lz4-c 1.9.2 h62dcd97_2 conda-forge
m2w64-gcc-libgfortran 5.3.0 6
m2w64-gcc-libs 5.3.0 7
m2w64-gcc-libs-core 5.3.0 7
Hi. Newbie here. I'm running the code in 2.6 (computing posterior using quadriatic approximation) and getting the follow errors. Is that to be expected?
UserWarning: grad method was asked to compute the gradient with respect to a variable that is not part of the computational graph of the cost, or is used only by a non-differentiable operator: <DisconnectedType>
handle_disconnected(rval[i])
<ipython-input-8-b8607afb3021>:6: RuntimeWarning: divide by zero encountered in true_divide
std_q = ((1 / pm.find_hessian(mean_q, vars=[p])) ** 0.5)[0]
<ipython-input-8-b8607afb3021>:6: RuntimeWarning: invalid value encountered in sqrt
std_q = ((1 / pm.find_hessian(mean_q, vars=[p])) ** 0.5)[0]
You are running the v4 development version of PyMC3 which currently still lacks key features. You probably want to use the stable v3 instead which you can either install via conda or find on the v3 GitHub branch: https://github.com/pymc-devs/pymc3/tree/v3
I try explicitly installing pymc3 like this
pip install pymc3
conda install m2w64-toolchain
jupyter notebook
I try Chp_02
theano throws a compilation error
Has anyone sucessfully installed and run the notebooks on Windows 10?
Rethinking_2
notebooks. I'm using binder to play with them today, and it's very useful to be able to follow along with Python, see https://mybinder.org/v2/gh/pymc-devs/resources/HEAD?labpath=Rethinking_2
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_105/2622655452.py in <module>
----> 1 import arviz as az
2 import matplotlib.pyplot as plt
3 import numpy as np
4 import pymc3 as pm
5 import scipy.stats as stats
ModuleNotFoundError: No module named 'arviz'
apparently I don't know how to use the environment.yml
to initialize the environment. Sorry for the binder newbiness...