An open API service indexing awesome lists of open source software.

https://github.com/vsimkus/torch-reparametrised-mixture-distribution

PyTorch implementation of the mixture distribution family with implicit reparametrisation gradients.
https://github.com/vsimkus/torch-reparametrised-mixture-distribution

data-science gradients machine-learning mixture-distributions mixture-model mixture-of-gaussians pytorch variational-inference

Last synced: 3 days ago
JSON representation

PyTorch implementation of the mixture distribution family with implicit reparametrisation gradients.

Awesome Lists containing this project

README

          

# Reparametrisable PyTorch MixtureSameFamily distribution

PyTorch implementation of the implicit reparametrisation trick for mixture distributions based on [Figurnov et al., 2019, "Implicit Reparameterization Gradients"](https://papers.nips.cc/paper/2018/hash/92c8c96e4c37100777c7190b76d28233-Abstract.html) and the implementation in [Tensorflow Probability](https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/MixtureSameFamily).

Can be readily used for variational inference with mixture distribution variational families.

Remarks:

* For multivariate mixtures, the class is currently implemented when the mixture component distributions fully factorise.
* Also added a `StableNormal` distribution, which overrides the default `cdf` method with a more stable implementation from . The implementation also provides a `_log_cdf` method, however it is not used for the implicit reparametrisation.