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

How to get probability of data point? #75

Open
abbyvansoest opened this issue Mar 6, 2019 · 1 comment
Open

How to get probability of data point? #75

abbyvansoest opened this issue Mar 6, 2019 · 1 comment

Comments

@abbyvansoest
Copy link

Let's say I have a trained model for some dataset X of unknown distribution. How can I use the Glow library to compute the probability of a new data point from the distribution?

I am looking at theinfer()function in train.py and f_encode() in model.py

What I'm doing right now is using the calculated objective in f_encode to compute p = tf.exp(objective). Is this correct? Could someone point me in the right direction?

@yapdianang
Copy link

yapdianang commented Apr 4, 2019

Any follow ups or insights or this? Any idea how to get probability from demo/model? Thanks!

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