Open jakubbober opened 1 year ago
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.
What exactly is the
context
, for example in the distributions likeMADEMoG
? I wanted to use this distrubution instead ofStandardNormal
for theMaskedAutoregressiveFlow
, 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 ofsamples
is set tocontext.shape[0]
, but I don't specify the context. Could you provide an example on how to fix this, or how an examplecontext
should be provided?