You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all this work is super impressive and thanks for doing it!
I asked about computing the density of a sample here. I was able to run this example notebook however, I couldn't figure out how to use the model in the following way
logprob = model.logprob(X)
For example, it would be really useful to be able evaluate the logprob of the model on any input sample if that makes sense!
This might be me not fully understanding the method but to evaluate the logprob do you have run the ODE solver for a sample going from the prior space to the target space? Or can you take a sample already in the target space and compute the logprob?
Thanks!
The text was updated successfully, but these errors were encountered:
Yep, definitely makes sense! Should probably add this to the library. I'll see if anyone is interested in doing that :)
The notebook actually gives a way to do this for an arbitrary sample.
Training a CNF essentially calculates the likelihood under the model for random samples of the dataset, and maximizes this.
You can use the same logic to calculate the likelihood under the model for any given point. Essentially you have to run the ODE solver backwards from the target space to the prior space, and calculate the change in likelihood along that path. So you can take the CNF wrapper in that notebook and the loss for the CNF
This should work fine. Currently the model takes in 2 + 1 dimensions (1 dimension for time) and 2 outputs controlled by the dim parameter. If you change this or make a similar model structure it should work.
Hi,
First of all this work is super impressive and thanks for doing it!
I asked about computing the density of a sample here. I was able to run this example notebook however, I couldn't figure out how to use the model in the following way
For example, it would be really useful to be able evaluate the logprob of the model on any input sample if that makes sense!
This might be me not fully understanding the method but to evaluate the logprob do you have run the ODE solver for a sample going from the prior space to the target space? Or can you take a sample already in the target space and compute the logprob?
Thanks!
The text was updated successfully, but these errors were encountered: