Skip to content

mixed base distribution #213

@SophieMLV

Description

@SophieMLV

Hi, I'm looking for an option to have a mixed base distribution for the normalizing flow.
So far I only see the option to have the one base distribution for all dimensions, ie

flow = masked_autoregressive_flow(
    subkey,
    base_dist=Normal(jnp.zeros(x.shape[1])),
)

With a mixed base distribution, I mean, when one has, for example, 2 dimensions and for the first one wants a normal distribution, while for the second one an exponential (or flat or whatever), is there a way to have something like

flow = masked_autoregressive_flow(
    subkey,
    base_dist=[Normal(jnp.zeros(1)),  Exponential(1)],
)

Thank you very much in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions