Get a function that performs penalized EM.
We precompile and precompute a few quantities that we put into a closure.
- Parameters:
weight_transport (float
) – weight for the transportation loss in the total loss
learning_rate (float
) – learning rate to use for the Adam optimizer
jit (bool
) – if True, precompile key methods
- Returns:
A function that performs generalized, penalized EM.