Skip to content
Discussion options

You must be logged in to vote

Hi @rmehta1987 thanks for raising this question. In general, when performing conditional density estimation, we can only use embeddings for the conditioning variable, i.e., we can use embeddings for x if we do NPE, and we can use embeddings for theta if we do NLE. We generally cannot embed the variable over which we learn the density.

However, NRE is an exception. Because in NRE we perform classification to estimate the ratio, we can actually use embeddings for both theta and x (this should also be reflected in the build function classifier_nn). Thus, for your use-case I would recommend using NRE.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rmehta1987
Comment options

@janfb
Comment options

@rmehta1987
Comment options

@janfb
Comment options

@rmehta1987
Comment options

Answer selected by janfb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #1526 on March 22, 2025 12:17.