Skip to content
Discussion options

You must be logged in to vote

Hi @austin-hoover,

There are several ways to get a NSF with coupling transformations.

  1. Use the zuko.flows.NSF class with passes=2 (which makes the autoregressive transform equivalent to a coupling one).
zuko.flows.NSF(5, 3, transforms=4, passes=2, bins=8)
  1. Use the zuko.flows.NICE class and set the univariate function to MonotonicRQSTransform.
bins = 8
zuko.flows.NICE(
    5,
    3,
    transforms=4,
    univariate=zuko.transforms.MonotonicRQSTransform,
    shapes=[[bins], [bins], [bins - 1]],
)
  1. Build your own flow with zuko.lazy.Flow and zuko.flows.GeneralCouplingTransform.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by francois-rozet
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants