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

Add pytorch demo script #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add pytorch demo script #6

wants to merge 1 commit into from

Conversation

wanzysky
Copy link

500 iters:

image

1500 iters:

image

@oiao
Copy link

oiao commented Dec 29, 2022

Thanks a lot for the implementation. I have noticed a strange behavior of Pytorch:
When concatenating the return value of LinearNormalGamma at

return mu, self.evidence(logv), self.evidence(logalpha) + 1, self.evidence(logbeta)

such that:

ret = mu, self.evidence(logv), self.evidence(logalpha) + 1, self.evidence(logbeta)
return torch.cat(ret, dim=-1)

the training does not seem to progress and a constant value is predicted. Is there any reasonable explanation for this?

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

Successfully merging this pull request may close these issues.

2 participants