general_coupling module¶
Abstract class for coupling cells
- class GeneralCouplingCell(*args, **kwargs)[source]¶
Bases:
zunis.models.flows.general_flow.GeneralFlow
Abstract class for coupling cell
- Parameters
d (int) – dimension of the space
transform (function or
InvertibleTransform
) – bijective variable transform that maps the unit hypercube (ind-sum(mask)
dimensions) to itself given some parameters. It should have the same signature asInvertibleTransform.forward
mask (list of bool) – indicates which variables are passed (y_N) through and which are transformed (y_M)
- class InvertibleCouplingCell(*args, **kwargs)[source]¶
Bases:
zunis.models.flows.coupling_cells.general_coupling.GeneralCouplingCell
An invertible coupling cell works exactly the same as a general coupling cell but its transform admits and inverse transformation.
- Parameters
d (int) – dimension of the space
transform (
InvertibleTransform
) – bijective variable transform that maps the unit hypercube (ind-sum(mask)
dimensions) to itself given some parameters.mask (list of bool) – indicates which variables are passed (y_N) through and which are transformed (y_M)