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

Context #68

Open
jakubbober opened this issue Jan 17, 2023 · 1 comment
Open

Context #68

jakubbober opened this issue Jan 17, 2023 · 1 comment

Comments

@jakubbober
Copy link

What exactly is the context, for example in the distributions like MADEMoG? I wanted to use this distrubution instead of StandardNormal for the MaskedAutoregressiveFlow, but I keep getting the error 'NoneType' object has no attribute 'shape' when I want to sample from this flow due to the fact that the first dimension of samples is set to context.shape[0], but I don't specify the context. Could you provide an example on how to fix this, or how an example context should be provided?

@forangel2014
Copy link

In my opinion, context is the condition of the base distribution which you want to fit. e.g. $N(\cdot|\mu(context), \Sigma(context))$. In the code, the context is used to generate params of the base distribution through context_encoder.

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