Skip to content

Chapter 2 Improper testval for true_answers #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
activatedgeek opened this issue Mar 8, 2018 · 0 comments
Open

Chapter 2 Improper testval for true_answers #380

activatedgeek opened this issue Mar 8, 2018 · 0 comments

Comments

@activatedgeek
Copy link

I am talking about the Code Block [32] in Ch2_MorePyMC_PyMC3.ipynb which says
in the section titled "Example: Cheating among students"

with model:
    true_answers = pm.Bernoulli("truths", p, shape=N, testval=np.random.binomial(1, 0.5, N))

Shouldn't the testval be np.random.binomial(1, p, N)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant