CamDavidsonPilon / Probabilistic-Programming-and-Bayesian-Methods-for-Hackers

aka "Bayesian Methods for Hackers": An introduction to Bayesian methods + probabilistic programming with a computation/understanding-first, mathematics-second point of view. All in pure Python ;)
http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/
MIT License
26.51k stars 7.84k forks source link

Chapter 2 | Challenger Simultation false use of np.ndarray | TFP version #434

Open Pindar777 opened 5 years ago

Pindar777 commented 5 years ago

Hi there,

in the following line the variable used should be p_deterministic:

simulated_data = tfd.Bernoulli(name="bernoulli_sim", probs=p_deterministic_).sample(sample_shape=10000)

pdeterministic is evaluated after this step.