Open ovshake opened 4 years ago
z = sum over k = 1...3 ( pi_k * normal_cdf (mu_k, sig_k) ) where n_components = 3
loc and exp(log_scale) are [mu_1, mu_2, mu_3] and [sig_1, sig_2, sig_3] respectively.
pi_k are the weights of each component.
CDFs map to [0, 1] and we can use uniform distribution for z. Mixture CDFs are preferred as they are more expressive. Hope this helps!
I am trying to implement the 1D flow as shown in
Flow Models Demos (Official).ipynb
. I can't figure out what isself.loc
in theMixtureCDFFlow
class. Also, what doesself.n_components
denote? This is the codeSome help is really appreciated.
Thanks