danielward27 / flowjax

https://danielward27.github.io/flowjax/
MIT License
85 stars 10 forks source link

Sample and log prob #65

Closed danielward27 closed 1 year ago

danielward27 commented 1 year ago

Adds a sample_and_log_prob method for Distribution. In Distribution this relies on _sample and _log_prob methods separately. However, for Transformed distributions, we reimplement it to avoid computing the inverse transformation.