Skip to content
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

Index variables in homework for week 5, exercise 3 #5

Open
webthusiast opened this issue Mar 4, 2021 · 1 comment
Open

Index variables in homework for week 5, exercise 3 #5

webthusiast opened this issue Mar 4, 2021 · 1 comment

Comments

@webthusiast
Copy link

In In[11], in the definition of mu, you use e.g. wj[W*J]. If I'm not mistaken, the index of this is 0 if either W or J is 0, and 1 if both are 1. Indexes 2 and 3 are never used. This is also reflected in Out[12] where wj[2] and wj[3] etc. are essentially equal to their priors. I guess you meant wj[2*W+J] instead.

Alternatively, I think you can use shape=(2, 2) in the definition of wj, and wj[W,J] in the definition of mu.

If I'm mistaken, please let me know. I'm only just learning this stuff.

@gbosquechacon
Copy link
Owner

Hey, @webthusiast thanks for the catch. I'll try and look at it in detail in the next days and will get back to you : )

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

2 participants