Given that the data adapter is now used for variable transforms (for e.g., implementing parameter constraints or scaling), it would be nice to keep track of the jacobian of the transform, so that if the user wants to use the log_prob method, it is possible to automatically obtain the log prob on the "constrained/data space" instead of the "unconstrained/network space".
For custom transforms, the user would have to supply corresponding log_det_jacobian function, but of course that should be only optional to those cases where the user wants to use log_prob in the first place.
I know we talked about this with @LarsKue and @paul-buerkner already at different time points, just making it an issue so that we can keep track of it here.
Given that the data adapter is now used for variable transforms (for e.g., implementing parameter constraints or scaling), it would be nice to keep track of the jacobian of the transform, so that if the user wants to use the
log_prob
method, it is possible to automatically obtain the log prob on the "constrained/data space" instead of the "unconstrained/network space".For custom transforms, the user would have to supply corresponding
log_det_jacobian
function, but of course that should be only optional to those cases where the user wants to uselog_prob
in the first place.I know we talked about this with @LarsKue and @paul-buerkner already at different time points, just making it an issue so that we can keep track of it here.