This pull request adds support to Pyro for SimplexToOrderedTransform. The implementation used is a port of the numpyro implementation of the same class.
I was working on implementing a model based on this numpyro guide using Pyro, and this was the one thing which was necessary to reimplement.
Because this class is meant to be used on values greater than zero, I have additionally added the ability to specify the family of distribution which should be used in the transformation tests; this new transformation uses a Dirichlet distribution for its tests.
This pull request adds support to Pyro for
SimplexToOrderedTransform
. The implementation used is a port of thenumpyro
implementation of the same class.I was working on implementing a model based on this numpyro guide using Pyro, and this was the one thing which was necessary to reimplement.
Because this class is meant to be used on values greater than zero, I have additionally added the ability to specify the family of distribution which should be used in the transformation tests; this new transformation uses a Dirichlet distribution for its tests.