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
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: