R/flows-maf.r
mafflowmodel.Rd
A readable and structured implementation of a Masked Autoregressive Flow. This version supports:
arbitrary dimension d
K sequential flow steps
a single parameter vector theta containing all weights
mafflowmodel(d = 3, K = 2, theta = NULL)
Dimension of the latent space.
Number of flow steps.
Optional parameter vector. If NULL, random initialization.
A flow model object with methods:
sampleq(n)
logq(z0)
applyflow(z0)