Tensorflow-probability

Latest version: v0.24.0

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

Scan your dependencies

Page 4 of 10

0.13.0

Release notes

This is the 0.13 release of TensorFlow Probability. It is
tested and stable against TensorFlow version 2.5.0.

See the visual release notebook in [colab](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_13_0.ipynb).

Change notes

- Distributions
- Adds `tfd.BetaQuotient`
- Adds `tfd.DeterminantalPointProcess`
- Adds `tfd.ExponentiallyModifiedGaussian`
- Adds `tfd.MatrixNormal` and `tfd.MatrixT`
- Adds `tfd.NormalInverseGaussian`
- Adds `tfd.SigmoidBeta`
- Adds `tfp.experimental.distribute.Sharded`
- Adds `tfd.BatchBroadcast`
- Adds `tfd.Masked`
- Adds JAX support for `tfd.Zipf`
- Adds Implicit Reparameterization Gradients to `tfd.InverseGaussian`.
- Adds quantiles for `tfd.{Chi2,ExpGamma,Gamma,GeneralizedNormal,InverseGamma}`
- Derive `Distribution` batch shapes automatically from parameter annotations.
- Ensuring `Exponential.cdf(x)` is always 0 for `x < 0`.
- `VectorExponentialLinearOperator` and `VectorExponentialDiag` distributions now return variance, covariance, and standard deviation of the correct shape.
- `Bates` distribution now returns mean of the correct shape.
- `GeneralizedPareto` now returns variance of the correct shape.
- `Deterministic` distribution now returns mean, mode, and variance of the correct shape.
- Ensure that `JointDistributionPinned`'s support bijectors respect autobatching.
- Now systematically testing log_probs of most distributions for numerical accuracy.
- `InverseGaussian` no longer emits negative samples for large `loc / concentration`
- `GammaGamma`, `GeneralizedExtremeValue`, `LogLogistic`, `LogNormal`, `ProbitBernoulli` should no longer compute `nan` log_probs on their own samples. `VonMisesFisher`, `Pareto`, and `GeneralizedExtremeValue` should no longer emit samples numerically outside their support.
- Improve numerical stability of `tfd.ContinuousBernoulli` and deprecate `lims` parameter.

- Bijectors
- Add bijectors to mimic `tf.nest.flatten` (`tfb.tree_flatten`) and `tf.nest.pack_sequence_as` (`tfb.pack_sequence_as`).
- Adds `tfp.experimental.bijectors.Sharded`
- Remove deprecated `tfb.ScaleTrilL`. Use `tfb.FillScaleTriL` instead.
- Adds `cls.parameter_properties()` annotations for Bijectors.
- Extend range `tfb.Power` to all reals for odd integer powers.
- Infer the log-deg-jacobian of scalar bijectors using autodiff, if not otherwise specified.

- MCMC
- MCMC diagnostics support arbitrary structures of states, not just lists.
- `remc_thermodynamic_integrals` added to `tfp.experimental.mcmc`
- Adds `tfp.experimental.mcmc.windowed_adaptive_hmc`
- Adds an experimental API for initializing a Markov chain from a near-zero uniform distribution in unconstrained space. `tfp.experimental.mcmc.init_near_unconstrained_zero`
- Adds an experimental utility for retrying Markov Chain initialization until an acceptable point is found. `tfp.experimental.mcmc.retry_init`
- Shuffling experimental streaming MCMC API to slot into tfp.mcmc with a minimum of disruption.
- Adds `ThinningKernel` to `experimental.mcmc`.
- Adds `experimental.mcmc.run_kernel` driver as a candidate streaming-based replacement to `mcmc.sample_chain`

- VI
- Adds `build_split_flow_surrogate_posterior` to `tfp.experimental.vi` to build structured VI surrogate posteriors from normalizing flows.
- Adds `build_affine_surrogate_posterior` to `tfp.experimental.vi` for construction of ADVI surrogate posteriors from an event shape.
- Adds `build_affine_surrogate_posterior_from_base_distribution` to `tfp.experimental.vi` to enable construction of ADVI surrogate posteriors with correlation structures induced by affine transformations.

- MAP/MLE
- Added convenience method `tfp.experimental.util.make_trainable(cls)` to create trainable instances of distributions and bijectors.

- Math/linalg
- Add trapezoidal rule to tfp.math.
- Add `tfp.math.log_bessel_kve`.
- Add `no_pivot_ldl` to `experimental.linalg`.
- Add `marginal_fn` argument to `GaussianProcess` (see `no_pivot_ldl`).
- Added `tfp.math.atan_difference(x, y)`
- Add `tfp.math.erfcx`, `tfp.math.logerfc` and `tfp.math.logerfcx`
- Add `tfp.math.dawsn` for Dawson's Integral.
- Add `tfp.math.igammaincinv`, `tfp.math.igammacinv`.
- Add `tfp.math.sqrt1pm1`.
- Add `LogitNormal.stddev_approx` and `LogitNormal.variance_approx`
- Add `tfp.math.owens_t` for the Owen's T function.
- Add `bracket_root` method to automatically initialize bounds for a root search.
- Add Chandrupatla's method for finding roots of scalar functions.

- Stats
- `tfp.stats.windowed_mean` efficiently computes windowed means.
- `tfp.stats.windowed_variance` efficiently and accurately computes windowed variances.
- `tfp.stats.cumulative_variance` efficiently and accurately computes cumulative variances.
- `RunningCovariance` and friends can now be initialized from an example Tensor, not just from explicit shape and dtype.
- Cleaner API for `RunningCentralMoments`, `RunningMean`, `RunningPotentialScaleReduction`.

- STS
- Speed up STS forecasting and decomposition using internal `tf.function` wrapping.
- Add option to speed up filtering in `LinearGaussianSSM` when only the final step's results are required.
- Variational Inference with Multipart Bijectors: [example notebook with the Radon model](https://www.tensorflow.org/probability/examples/Variational_Inference_and_Joint_Distributions).
- Add experimental support for transforming any distribution into a preconditioning bijector.

- Other
- Distributed inference [example notebook](https://www.tensorflow.org/probability/examples/Distributed_Inference_with_JAX)
- `sanitize_seed` is now available in the `tfp.random` namespace.
- Add `tfp.random.spherical_uniform`.



Huge thanks to all the contributors to this release!

- Abhinav Upadhyay
- axch
- Brian Patton
- Chris Jewell
- Christopher Suter
- colcarroll
- Dave Moore
- ebrevdo
- Emily Fertig
- Harald Husum
- Ivan Ukhov
- jballe
- jburnim
- Jeff Pollock
- Jensun Ravichandran
- JulianWgs
- junpenglao
- jvdillon
- j-wilson
- kateslin
- Kristian Hartikainen
- ksachdeva
- langmore
- leben
- mattjj
- Nicola De Cao
- Pavel Sountsov
- paweller
- phawkins
- Prasanth Shyamsundar
- Rene Jean Corneille
- Samuel Marks
- scottzhu
- sharadmv
- siege
- Simon Dirmeier
- Srinivas Vasudevan
- Thomas Markovich
- ursk
- Uzair
- vanderplas
- yileiyang
- ZeldaMariet
- Zichun Ye

0.13.0rc0

This is the RC0 release candidate of the TensorFlow Probability 0.13 release.

It is tested against TensorFlow 2.5.0.

0.12.2

This is the 0.12.2 release of TensorFlow Probability, a patch release to cap the JAX dependency to a compatible version. It is tested and stable against TensorFlow version 2.4.0.

For detailed change notes, please see the 0.12.1 release at https://github.com/tensorflow/probability/releases/tag/v0.12.1 .

0.12.1

Release notes

This is the 0.12.1 release of TensorFlow Probability. It is tested and stable against TensorFlow version 2.4.0.


Change notes

NOTE: Links point to examples in the [TFP 0.12.1 release Colab](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb).

Bijectors:

- Add implementation of GLOW at [`tfp.bijectors.Glow`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=TMDJbHd1iBY8).
- Add [`RayleighCDF` bijector](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=lk4QxaPAe7CJ).
- Add [`Ascending` bijector](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=qZMD_bR-hJLc) and deprecate `Ordered`.
- Add optional [`low` parameter](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=JkLyCi2hkjF3) to the `Softplus` bijector.
- Enable `ScaleMatvecLinearOperator` bijector [to wrap blockwise LinearOperators](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=3ifmOfQ4ISAc) to form a multipart bijectors.
- Allow passing kwargs to `Blockwise`.
- Bijectors now share a global cache, keyed by the bijector parameters and the value being transformed.

Distributions:

- BREAKING: Remove deprecated `HiddenMarkovModel.num_states` property.
- BREAKING: Change the naming scheme of un-named variables in JointDistributions.
- BREAKING: Remove deprecated `batch_shape` and `event_shape` arguments of `TransformedDistribution`.
- Add [`Skellam` distribution](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=oxrTNhcjIFdH).
- `JointDistributionCoroutine{AutoBatched}` now [uses namedtuples as the sample dtype](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=9BEZCVGdeqbS).
- von-Mises Fisher distribution now [works for dimensions > 5](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=HQFqtfraeQPm) and implements [`VonMisesFisher.entropy`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=HQFqtfraeQPm).
- Add [`ExpGamma` and `ExpInverseGamma` distributions](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=m7znpTpzeh1P).
- `JointDistribution*AutoBatched` now [support (reproducible) tensor seeds](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=dFxOLc-dICrZ).
- Add [KL(VonMisesFisher || SphericalUniform)](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=XC5X2xv5i1wH&line=1&uniqifier=1).
- Added [`Distribution.parameter_properties` method](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=H8HHW-gaJC6i).
- `experimental_default_event_space_bijector` now [accepts additional arguments to pin some distribution parts](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=9qMds4htI1Nl).
- Add [`JointDistribution.experimental_pin` and `JointDistributionPinned`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=ZIvOfH61I6cR).
- Add [`NegativeBinomial.experimental_from_mean_dispersion` method](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=ep-jMPbcdpnT).
- Add [`tfp.experimental.distribute`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=POhRZPKij_Ik), with `DistributionStrategy`-aware distributions that support cross-device likelihood computations.
- `HiddenMarkovModel` can now accept time varying observation distributions if `time_varying_observation_distribution` is set.
- `Beta`, `Binomial`, and `NegativeBinomial` CDF no longer returns nan outside the support.
- Remove the "dynamic graph" code path from the Mixture sampler. (`Mixture` now ignores the `use_static_graph` parameter.)
- `Mixture` now computes standard deviations more accurately and robustly.
- Fix incorrect `nan` samples generated by several distributions.
- Fix KL divergence between `Categorical` distributions when logits contain -inf.
- Implement `Bernoulli.cdf`.
- Add a `log_rate` parameter to `tfd.Gamma`.
- Add option for parallel filtering and sampling to `LinearGaussianStateSpaceModel`.

MCMC:

- Add [`tfp.experimental.mcmc.ProgressBarReducer`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=ywSBLf0Kd-Gd).
- Update `experimental.mcmc.sample_sequential_monte_carlo` to [use new MCMC stateless kernel API](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=nqEyEhWie_7C).
- Add an experimental streaming MCMC framework that supports computing statistics over a (batch of) Markov chain(s) without materializing the samples. Statistics supported (mostly on arbitrary functions of the model variables): mean, (co)variance, central moments of arbitrary rank, and the potential scale reduction factor (R-hat). Also support selectively tracing history of some but not all statistics or model variables. Add [algorithms for running mean, variance, covariance, arbitrary higher central moments, and potential scale reduction factor (R-hat)](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=VHRVSmUJkx7q) to`tfp.experimental.stats`.
- untempered_log_prob_fn added as __init__ kwarg to ReplicaExchangeMC Kernel.
- Add experimental support for mass matrix preconditioning in Hamiltonian Monte Carlo.
- Add ability to temper part of the log prob in ReplicaExchangeMC.
- `tfp.experimental.mcmc.{sample_fold,sample_chain}` support warm restart.
- even_odd_swap exchange function added to replica_exchange_mc.
- Samples from ReplicaExchangeMC can now have a per-replica initial state.
- Add omitted n/(n-1) term to `tfp.mcmc.potential_scale_reduction_factor`.
- Add `KernelBuilder` and `KernelOutputs` to experimental.
- Allow tfp.mcmc.SimpleStepSizeAdaptation and DualAveragingStepSizeAdaptation to take a custom reduction function.
- Replace `make_innermost_getter` et al. with `tfp.experimental.unnest` utilities.

VI:

- Add [automated construction of ASVI surrogate posteriors](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=LYuJ0bqUpSmI).

Math + Stats:

- Add [`tfp.math.bessel_ive`, `tfp.math.bessel_kve`, `tfp.math.log_bessel_ive`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=UVrlCesAIqZN).
- Add [optional `weights` to `tfp.stats.histogram`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=MP3kOPlMh7Rz).
- Add [`tfp.math.erfcinv`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=ZQSVnu5re3S5).
- Add `tfp.math.reduce_log_harmonic_mean_exp`.

Other:

- Add [`tfp.math.psd_kernels.GeneralizedMaternKernel`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=FMK3QMjYIN75) (generalizes `MaternOneHalf`, `MaternThreeHalves` and `MaternFiveHalves`).
- Add [`tfp.math.psd_kernels.Parabolic`](https://colab.research.google.com/github/tensorflow/probability/blob/master/tensorflow_probability/examples/jupyter_notebooks/TFP_Release_Notebook_0_12_1.ipynb#scrollTo=K04waYMLIL2c).
- Add `tfp.experimental.unnest` utilities for accessing nested attributes.
- Enable pytree flattening for TFP distributions in JAX
- More careful handling of nan and +-inf in {L-,}BFGS.
- Remove Edward2 from TFP. Edward2 is now in its own repo at https://github.com/google/edward2 .
- Support vector-valued offsets in `sts.Sum`.
- Make DeferredTensor actually defer computation under JAX/NumPy backends.


Huge thanks to all the contributors to this release!

- Adrian Buzea
- Alexey Radul
- Ben Lee
- Ben Poole
- Brian Patton
- Christopher Suter
- Colin Carroll
- Cyril Chimisov
- Dave Moore
- Du Phan
- Emily Fertig
- Eugene Brevdo
- Federico Tomasi
- François Chollet
- George Karpenkov
- Giovanni Palla
- Ian Langmore
- Jacob Burnim
- Jacob Valdez
- Jake VanderPlas
- Jason Zavaglia
- Jean-Baptiste Lespiau
- Jeff Pollock
- Joan Puigcerver
- Jonas Eschle
- Josh Darrieulat
- Joshua V. Dillon
- Junpeng Lao
- Kapil Sachdeva
- Kate Lin
- Kibeom Kim
- Luke Metz
- Mark Daoust
- Matteo Hessel
- Michal Brys
- Oren Bochman
- Padarn Wilson
- Pavel Sountsov
- Peter Hawkins
- Rif A. Saurous
- Ru Pei
- ST John
- Sharad Vikram
- Simeon Carstens
- Srinivas Vasudevan
- Tom O'Malley
- Tomer Kaftan
- Urs Köster
- Yash Katariya
- Yilei Yang

0.12.0

This is the 0.12.0 release of TensorFlow Probability. It is tested and stable against TensorFlow version 2.4.0.

For detailed change notes, please see the 0.12.1 release at https://github.com/tensorflow/probability/releases/tag/v0.12.1 .

0.12.0rc4

This is RC4 of the TensorFlow Probability 0.12 release. It is tested against TensorFlow 2.4.0-rc4.

Page 4 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.