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

Sampling #13

Open
waileong94 opened this issue Oct 10, 2021 · 1 comment
Open

Sampling #13

waileong94 opened this issue Oct 10, 2021 · 1 comment

Comments

@waileong94
Copy link

waileong94 commented Oct 10, 2021

I am trying to do a conditional sampling using the toy example(gaussian) , however i got this error

n_sample = 200
condX = np.array([[0,1]])
model.sample(n_sample,inds = [2],cond_inds = [0,1],cond_X = t.tensor(condX))

image

@dargilboa
Copy link
Owner

Hi, there was a bug when conditioning on all variables but one. I just pushed a fix. I wasn't able to reproduce the exact error but I got a related error (possibly because I was running on a CPU), in any case I think the fix should resolve both of these. Please let me know if it persists.

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