Pyro-ppl

Latest version: v1.9.0

Safety actively analyzes 626904 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.8.1

Breaking changes
* Update to PyTorch 1.11.0 in https://github.com/pyro-ppl/pyro/pull/3045
* Drop support for Python 3.6 in https://github.com/pyro-ppl/pyro/pull/3047

New features
* [New tutorial](http://pyro.ai/examples/workflow.html) on Bayesian workflow, with a SARS-CoV-2 running example in https://github.com/pyro-ppl/pyro/pull/2977
* Render parameters in [ `render_model()` ](https://docs.pyro.ai/en/stable/infer.util.html#pyro.infer.inspect.render_model) karm-patel in https://github.com/pyro-ppl/pyro/pull/3039
* Distributions:
* Add [LogNormalNegativeBinomial](https://docs.pyro.ai/en/dev/distributions.html#lognormalnegativebinomial) distribution by martinjankowiak in https://github.com/pyro-ppl/pyro/pull/3010
* Implement [DiscreteHMM.sample()](https://docs.pyro.ai/en/dev/distributions.html#pyro.distributions.DiscreteHMM.sample) by fritzo in https://github.com/pyro-ppl/pyro/pull/3050
* Parallelized [DiscreteHMM.sample()](https://docs.pyro.ai/en/dev/distributions.html#pyro.distributions.DiscreteHMM.sample) by ordabayevy in https://github.com/pyro-ppl/pyro/pull/3053
* Add missing docs for [ProjectedNormal](https://docs.pyro.ai/en/dev/distributions.html#pyro.distributions.ProjectedNormal) parameter in https://github.com/pyro-ppl/pyro/pull/3009
* Support 4D [ProjectedNormal](https://docs.pyro.ai/en/dev/distributions.html#pyro.distributions.ProjectedNormal) distribution in https://github.com/pyro-ppl/pyro/pull/3011

Misc changes
* fix docstring in repeated_matmul by martinjankowiak in https://github.com/pyro-ppl/pyro/pull/2999
* use more conservative learning rate in bart.py by martinjankowiak in https://github.com/pyro-ppl/pyro/pull/3002
* Clarified comments in `minipyro.py` to fix 3003 by luiarthur in https://github.com/pyro-ppl/pyro/pull/3004
* Update black formatting by fritzo in https://github.com/pyro-ppl/pyro/pull/3020
* Closes 3016 by nipunbatra in https://github.com/pyro-ppl/pyro/pull/3017
* Fix timeseries tutorial link by fritzo in https://github.com/pyro-ppl/pyro/pull/3021
* Some documentation improvements to MLE_MAP and SVI_P by nipunbatra in https://github.com/pyro-ppl/pyro/pull/3022
* Improvements to [GP tutorial](https://pyro.ai/examples/gp.html) by nipunbatra in https://github.com/pyro-ppl/pyro/pull/3027
* change sample to param statements in guides by dhudsmith in https://github.com/pyro-ppl/pyro/pull/3042
* Added type assertion for better code clarity by GautamV234 in https://github.com/pyro-ppl/pyro/pull/3036
* add GitHub URL for PyPi by andriyor in https://github.com/pyro-ppl/pyro/pull/3038

New Contributors
* luiarthur made their first contribution in https://github.com/pyro-ppl/pyro/pull/3004
* nipunbatra made their first contribution in https://github.com/pyro-ppl/pyro/pull/3017
* dhudsmith made their first contribution in https://github.com/pyro-ppl/pyro/pull/3042
* GautamV234 made their first contribution in https://github.com/pyro-ppl/pyro/pull/3036
* karm-patel made their first contribution in https://github.com/pyro-ppl/pyro/pull/3039
* andriyor made their first contribution in https://github.com/pyro-ppl/pyro/pull/3038

**Full Changelog**: https://github.com/pyro-ppl/pyro/compare/1.8.0...1.8.1

1.8.0

New features and improvements
- New Tutorials
- [Introduction to Pyro](https://pyro.ai/examples/intro_long.html), a completely new intro tutorial #2991
- [Logistic growth models of SARS-CoV-2](https://pyro.ai/examples/logistic-growth.html), #2982
- [SCANVI for single cell transcriptomics](https://pyro.ai/examples/scanvi.html), #2975
- [Model rendering](https://pyro.ai/examples/model_rendering.html) #2962
- Added [pyro.render_model()](https://docs.pyro.ai/en/latest/infer.util.html#pyro.infer.inspect.render_model) to visualize model structure 2962 (based on ordabayevy's `ProvenanceTensor` and `numpyr.render_model()`)
- Autoguides
- Improve parametrization of [AutoMultivariateNormal](https://docs.pyro.ai/en/stable/infer.autoguide.html#automultivariatenormal) 2972, 2963
- Added a new class of effect-based guides including [AutoNormalMessenger](https://docs.pyro.ai/en/latest/infer.autoguide.html#pyro.infer.autoguide.AutoNormalMessenger), [AutohierarchicalNormalMessenger](https://docs.pyro.ai/en/latest/infer.autoguide.html#pyro.infer.autoguide.AutoHierarchicalNormalMessenger), and [AutoRegressiveMessenger](https://docs.pyro.ai/en/latest/infer.autoguide.html#pyro.infer.autoguide.AutoRegressiveMessenger) 2953, 2955 (thanks to vitkl)
- Added an [AutoGaussian](https://docs.pyro.ai/en/latest/infer.autoguide.html#pyro.infer.autoguide.AutoGaussian), similar to `AutoMultivariateNormal`, but with sparse precision matrix factorization based on dependency structure in the model.
- Added sampling functions to the MuE missing data discrete HMM 2898
- Added a [PositivePowerTransform](https://docs.pyro.ai/en/dev/distributions.html#pyro.distributions.transforms.PositivePowerTransform) for positive-valued variables 2904

1.7.0

New features
- Update to PyTorch 1.9 2887
- A [StreamingMCMC](https://docs.pyro.ai/en/latest/mcmc.html#streamingmcmc) class for high-dimensional Bayesian inference using NUTS or HMC, thanks to mtsokol 2857 .
`StreamingMCMC` is a drop-in replacement for `MCMC` that avoids storing samples during inference by streamingly computing statistics such as mean, variance, and r_hat. You can define your own statistics using the [pyro.ops.streaming](https://docs.pyro.ai/en/latest/ops.html#module-pyro.ops.streaming) module by either composing existing statistics or defining your own subclass of [StreamingStats](https://docs.pyro.ai/en/latest/ops.html#pyro.ops.streaming.StreamingStats) 2856 .
- Make `poutine.reparam` compatible with initialization logic in autoguides and MCMC 2876 . Previously you needed to manually transform the value in [init_to_value()](https://docs.pyro.ai/en/dev/infer.autoguide.html#pyro.infer.autoguide.initialization.init_to_value) when using a reparametrizer. In Pyro 1.7 you can specify a single `init_to_value()` output that should work regardless of whether your model is transformed by a reparametrizer. Note this involves a major refactoring of the [Reparam](https://docs.pyro.ai/en/latest/infer.reparam.html) interface, namely replacing [.__call__()](https://docs.pyro.ai/en/latest/infer.reparam.html#pyro.infer.reparam.reparam.Reparam.__call__) with [.apply()](https://docs.pyro.ai/en/latest/infer.reparam.html#pyro.infer.reparam.reparam.Reparam.apply). If you have defined custom reparametrizers using `.__call__()` you should refactor them before the next Pyro release.
- Add an [AutoStructured](https://docs.pyro.ai/en/latest/infer.autoguide.html#autostructured) guide with flexible distributions, sparse flexible dependencies among latent variables, and support for reparametrization 2812 . This autoguide is somewhere between [AutoNormal](https://docs.pyro.ai/en/latest/infer.autoguide.html#autonormal) and [AutoIAFNormal](https://docs.pyro.ai/en/latest/infer.autoguide.html#autoiafnormal)+[NeuTraReparam](https://docs.pyro.ai/en/latest/infer.reparam.html#pyro.infer.reparam.neutra.NeuTraReparam). Like `AutoNormal` this guide is interpretable and structured. Like `NeuTraReparam` this guide is flexible and can be used to improve geometry for subsequent inference via HMC or NUTS.
- New directional distributions thanks to OlaRonning
- [SinSkewedToroidal](https://docs.pyro.ai/en/latest/distributions.html#sineskewed) 2826
- [SinBivariateVonMises](https://docs.pyro.ai/en/latest/distributions.html#sinebivariatevonmises) 2821
- New distributions over [genetic and amino acid sequences](https://docs.pyro.ai/en/stable/contrib.mue.html#), thanks to EWeinstein 2728
(see https://www.biorxiv.org/content/10.1101/2020.07.31.231381v2)
- New distributions with exponential tails
- [Logistic](https://docs.pyro.ai/en/latest/distributions.html#logistic) 2895
- [SkewLogistic](https://docs.pyro.ai/en/latest/distributions.html#skewlogistic) 2874
- [AsymmetricLaplace](https://docs.pyro.ai/en/latest/distributions.html#asymmetriclaplace) 2850
- [SoftLaplace](https://docs.pyro.ai/en/latest/distributions.html#softlaplace) 2791
- [SoftAsymmetricLaplace](https://docs.pyro.ai/en/latest/distributions.html#softasymmetriclaplace) 2872
- Add [AutoGuideList.quantiles()](https://docs.pyro.ai/en/latest/infer.autoguide.html#pyro.infer.autoguide.AutoGuideList.quantiles) thanks to vitkl 2896
- Allow saving a subset of variables in [MCMC](https://docs.pyro.ai/en/dev/mcmc.html#pyro.infer.mcmc.api.MCMC) via the `save_params` option, which can save memory 2793
- Add a sample option to `pyro.contrib.funsor.infer_discrete` 2789

New tutorials
- A [predictive and deterministic](https://pyro.ai/examples/predictive_deterministic.html) tutorial thanks to mtsokol #2852
- [ProfileHMM with MuE](https://pyro.ai/examples/mue_profile.html) by EWeinstein #2728
- [Factor MuE and Probabilistic PCA](https://pyro.ai/examples/mue_factor.html) by EWeinstein #2728
- Add ordabayevy's trick to the [enumeration tutorial](https://pyro.ai/examples/enumeration.html) #2892
- Enhance the [LDA tutorial](https://pyro.ai/examples/prodlda.html) #2790

Bug fixes
- Fix `poutine.do` to avoid duplicate entries in `cond_indep_stack` 2846
- Fix `infer.csis` to ignore unused gradients, thanks to fshipy 2828
- Catch NAN values in TraceENUM_ELBO grads 2782

Breaking changes
- Simplify param names in callable optim configs 2814
- Switch to softplus transform when using autoguide scales, thanks to [experiments](https://github.com/pyro-ppl/sandbox/pull/14) performed by vitkl #2823

Ceanup
- Start using `mypy` for type checking, thanks to kamathhrishi 2853 2858
- Start using `black` code formatter 2891

1.6.0

Breaking changes
- Update to [PyTorch 1.8 release](https://github.com/pytorch/pytorch/releases/tag/v1.8.0) (required).
- Enable validation by default 2701. To disable globally call [pyro.enable_validation(False)](https://docs.pyro.ai/en/1.6.0/primitives.html#pyro.primitives.enable_validation); or disable locally to one distribution via e.g. `Normal(loc, scale, validate_args=False)`.
- Switch from `LKJCorrCholesky` distribution to upstream [LKJCholesky](https://docs.pyro.ai/en/1.6.0/distributions.html#lkjcholesky) distribution 2771.

New Tutorials
- [Product LDA](https://pyro.ai/examples/prodlda.html) for probabilistic topic modeling #2729.

New features
- Support masked conditioning via [pyro.sample(..., obs_mask=...)](https://docs.pyro.ai/en/1.6.0/primitives.html#pyro.primitives.sample) 2772.
- Distributions:
- Added a [Distribution.infer_shapes()](https://docs.pyro.ai/en/1.6.0/distributions.html#pyro.distributions.torch_distribution.TorchDistributionMixin.infer_shapes) method for static shape analysis 2739.
- Added [ProjectedNormal](https://docs.pyro.ai/en/1.6.0/distributions.html#projectednormal) for circular and spherical data (with more functionality than `VonMises`) 2736.
- Added [AffineBeta](https://docs.pyro.ai/en/1.6.0/distributions.html#affinebeta) distribution over arbitrary intervals 2735 by ordabayevy.
- Added [SpanningTree](https://docs.pyro.ai/en/1.6.0/distributions.html#spanningtree) properties `.mode`, `.edge_mean` 2727
- Added [OneOneMatching](https://docs.pyro.ai/en/1.6.0/distributions.html#oneonematching) and [OneTwoMatching](https://docs.pyro.ai/en/1.6.0/distributions.html#onetwomatching) distributions to approximately marginalize over bipartite matchings 2707, 2697.
- Reparametrizers:
- Added [ProjectedNormalReparam](https://docs.pyro.ai/en/1.6.0/infer.reparam.html#pyro.infer.reparam.projected_normal.ProjectedNormalReparam) for inference with [ProjectedNormal](https://docs.pyro.ai/en/1.6.0/distributions.html#projectednormal) distributions 2736.
- Support more batch distributions in [HaarReparam](https://docs.pyro.ai/en/1.6.0/infer.reparam.html#pyro.infer.reparam.haar.HaarReparam) 2731.
- [Constraints](https://docs.pyro.ai/en/1.6.0/distributions.html#module-pyro.distributions.constraints):
- Added a [Constraint.event_dim](https://pytorch.org/docs/1.8.0/distributions.html#module-torch.distributions.constraints) property 2753.
- Added `positive_ordered_vector`, `corr_matrix` 2762
- Added `sphere` 2736.
- Added `softplus_positive` and `softplus_lower_cholesky` constraints with numerically stable [SoftplusTransform](https://docs.pyro.ai/en/dev/distributions.html#softplustransform) and [SoftplusLowerCholeskyTransform](https://docs.pyro.ai/en/dev/distributions.html#softpluslowercholeskytransform) 2767.
- Added a [TraceMarkovEnum_ELBO](https://docs.pyro.ai/en/1.6.0/contrib.funsor.html#pyro.contrib.funsor.infer.traceenum_elbo.TraceMarkovEnum_ELBO) and `VectorizedMarkovMessenger` for parallel scan enumeration 2703, 2703 by ordabayevy.
- Added an experimental [autoname handler](https://docs.pyro.ai/en/1.6.0/contrib.autoname.html) #2745 by ordabayevy.
- Added [goodness of fit tests](https://docs.pyro.ai/en/1.6.0/testing.html#goodness-of-fit-testing) for testing new distribution implementations 2738.
- Support [MaskedDistribution](https://docs.pyro.ai/en/1.6.0/distributions.html#maskeddistribution) in [contrib.forecast]() 2709.

Bugfixes
- Many fixes to distribution shapes 2759, 2746, 2739.
- Detach [AutoGuide.median()](https://docs.pyro.ai/en/1.6.0/infer.autoguide.html#pyro.infer.autoguide.AutoGuide.median) and [.quantiles()](https://docs.pyro.ai/en/1.6.0/infer.autoguide.html#pyro.infer.autoguide.AutoNormal.quantiles) methods 2743.

1.5.2

This patch release merely
- Pins to requirements to torch<1.8 to avoid breaking changes in torch 1.8.0 (introduced in pytorch/pytorch50547 pytorch/pytorch50581).
- Fixes an fft bug 2731

1.5.1

New features
- 2693 A [GumbelSoftmaxReparam](http://docs.pyro.ai/en/stable/infer.reparam.html#pyro.infer.reparam.softmax.GumbelSoftmaxReparam) for relaxed categorical distributions

Bug fixes
- 2683 Support PyTorch 1.7
- 2682 Fix `help(MyDistribution)`
- 2679 Fix `TraceEnum_ELBO.compute_marginals()`
- 2677 Warn if `infer_discrete()` finds no discrete sites

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.