Skip to content

Releases: pyro-ppl/numpyro

0.12.1

01 Jun 14:32
5291d06
Compare
Choose a tag to compare

This release includes a fix for jax 0.4.11 (#1595).

0.12.0

31 May 11:16
f981b29
Compare
Choose a tag to compare

New Features

Enhancements and Bug Fixes

  • Make transforms jittable (#1575)
  • Fixed typo in surrogate posterior of beta (#1591)
  • Do not scale mnist label (#1589)
  • Do not mutate shapes of ExpandedDistribution for map-free ops (#1574)
  • Add support for JAX custom PRNG (#1587)
  • Include deterministic variables in AutoDelta's sample_posterior (#1584)
  • Fix forward shape of SimplexToOrderTransform (#1583)
  • Fix inf's in TruncatedNormal log_prob & sample (#1581)
  • Allow users to specify total_count_max in Multinomial (#1557)
  • Allow pickled mcmc object to run post warmup phase (#1558)
  • Add init_params argument to svi.init() and svi.run() (#1561)
  • Support pickling MCMC objects with enumeration (#1577)
  • Raise error when reparameterize lognormal (#1548)
  • Avoid initializing model params when already specified in guide (#1553)
  • Respect init params if provided to mcmc.run (#1547)
  • Fix provenance for jax 0.4.4 (#1543)
  • Use analytic kl divergence in TraceEnum_ELBO (#1533)
  • Properly handle contraction of guide plates in TraceEnum_ELBO (#1537)
  • Raise an error if there is no common scale when model enumerated (#1536)
  • Optimize reduction of enumerated guide sites (#1531)
  • Guess max_plate_nesting in TraceEnum_ELBO (#1528)

0.11.0

23 Jan 04:14
c635841
Compare
Choose a tag to compare

Breaking changes

Drop Python 3.7 support and require the minimal jax version 0.4.

New Features

Enhancements and Bug Fixes

  • #1507 Made constraints robust to pickling (thanks to @pierreglaser)
  • #1515 Fixed log_prob for negative correlation in SineBivariateVonMises distribution (thanks to @OlaRonning)
  • #1509 Fixed a bug at flatten/unflatten distributions which mixed the order of arguments of the distributions (thanks to @hessammehr)
  • #1494 Fixed Mixture distribution with unnormalized logits giving incorrect log_prob
  • #1486 Returned a positive ordered vector when applies ExpTransform for an ordered vector
  • #1491 Fixed Mixture intermediate values
  • #1480 Fixed some computations in Bayesian Hierarchical Stacking tutorial (thanks to @cpieringer)
  • #1478 Added icdf methods for Beta, Gamma, StudentT
  • #1477 Allowed multiple arguments to initialize flax/haiku modules (thanks to @fehiepsi)
  • #1475 Used TFP's betainc (which supports taking gradient w.r.t. parameters) in StudentT.cdf (thanks to @colehaus)

0.10.1

05 Sep 15:20
3c199d2
Compare
Choose a tag to compare

New Features

  • #1458 New Mixture distribution to allow component distributions come from different families (thanks to @dfm)

Enhancements and Bug Fixes

  • #1469 Fix memory leak when using scan
  • #1465 Fix validation logic for transformed distribution (thanks to @xidulu)
  • #1462 Avoid infinite loop in vmapped Binomial (thanks to @tbenthompson)
  • #1449 Move contrib.render functionality to infer.inspect (thanks to @mattja)

0.10.0

04 Jul 16:11
e68455f
Compare
Choose a tag to compare

New Features

Enhancements and Bug Fixes

  • #1401 Fix obs argument is not respected when sample primitive is not executed under any handler (thanks to @gcskoenig)
  • #1412 TraceGraph_ELBO implementation using provenance tracking
  • #1418 Fix SA sampler cannot be run in parallel chains
  • #1419 Fix categorical sampler occasionally generate out-of-support samples
  • #1436 Allow to use potential_fn in BarkerMH
  • #1437 Fix for AutoMultivariateNormal.get_posterior method return incorrect distribution (thanks to @xidulu)
  • #1444 Promote shapes for observed variables inside scan's transition function
  • #1443 Consider the time dimension of markov models with history=0 as plate
  • #1441 More stable check for corr_cholesky constraint
  • #1400 Fix SineBivariateVonMises sampler

0.9.2

14 Apr 00:27
1dbe63f
Compare
Choose a tag to compare

New Features

Enhancements and Bug Fixes

  • #1386 Support JAX 0.3.5
  • #1388 Update jaxns to 1.0.0
  • #1372 Fix batch shapes of SineBivariateVonMises distribution
  • #1375 Add __repr__ method for constraints
  • #1358 Force validate_args to be keyword argument
  • #1350 Enhance the AR2 example

Thanks, @cstoafer, @hesenp, @tcbegley, @themrzmaster, @karm-patel, @theorashid

0.9.1

28 Feb 14:06
c5b1a92
Compare
Choose a tag to compare

New Features

Enhancements and Bug Fixes

  • #1320 Fix provenance logic for numpyro.render_model
  • #1330 Fix vectorize sampling for sites with size=0
  • #1331 Allow nested params in SteinVI
  • #1333 Reduce memory consumption for SteinVI
  • #1325 Fix compat MCMC signature

Thanks, @Vinnie-Palazeti, @wataruhashimoto52, @hessammehr, @OlaRonning, @d-diaz!

0.9.0

29 Jan 20:11
7084aaa
Compare
Choose a tag to compare

New Features

Enhancements and Bug Fixes

  • #1305 Fixes HMCECS bug for likelihoods with multiple plates
  • #1304 Improves warning mechanism when plates are missing.
  • #1301 Fixes sparse Poisson density sometimes returns int output.
  • #1289 Make HMC Gibbs algorithms work with improper distributions
  • #1284 Adds various KL divergences for Gamma/Beta families
  • #1281 Raises error if there are duplicated deterministic sites
  • #1271 Better warning mechanism with stacklevel
  • #1270 Incorporate kl divergences of Tensorflow Probability distributions
  • #1259 #1266 Allow TruncatedNormal/Cauchy to take both low and high
  • #1254 numpyro.contrib.indexing is moved to numpyro.ops.indexing
  • #1252 Use multipledispatch for kl_registry
  • #1250 Added cdf methods for gamma, inverse gamma, log normal densities
  • #1248 Add ProvenanceArray to infer relational structure in a model
  • #1244 Raise warning for the automatic enumeration behavior
  • #1237 Enhance warnings for invalid parameters of BetaProportion distribution
  • #1227 Allow prior to be callable in random_flax_module and random_haiku_module
  • #1226 Allow init_to_sample work with scalar values
  • #1225 Add color for divergences in Neal's example
  • #1196 Allow custom precision function in laplace approximation autoguide
  • #1194 Option to specify init state for SVI run
  • #1185 #1189 Avoid -inf/nan samples in truncated distributions
  • #1182 Extend scope handler for plate stack frames
  • #1179 Support enumerate support for zero inflated distributions
  • #1169 Allow pickle autoguides

This release is composed of great contributions and feedback from the Pyro community: @amalvaidya @MarcoGorelli @omarfsosa @maw501 @bjeffrey92 @hessammehr @OlaRonning @dykim29 @Carlosbogo @wataruhashimoto52 @Vedranh13 @ahmadsalim @austereantelope and many others. Thank you!

0.8.0

26 Sep 03:33
632a13a
Compare
Choose a tag to compare

Breaking changes

Switch to softplus transforms for autoguide scales (thanks to experiments performed by @vitkl).

New Features

Enhancements and Bug Fixes

  • #1108 Avoid numerical problems when using BernoulliProbs
  • #1118 Recommend AutoNormal guide when hessian in AutoLaplace is singular
  • #1126 Smarter warning about discrete inference in SVI models
  • #1136 Support to use SA sampler with arviz
  • #1139 Document Poisson is_sparse argument
  • #1140 Make Sigmoid and StickBreakingTransform more stable
  • #1149 Raise value error if num_steps bad in svi.run
  • #1162 Use black[jupyter] in notebooks

This release is composed of great contributions and feedback from the Pyro community: @MarcoGorelli @OlaRonning @d-diaz @quattro @svilupp @peterroelants @prashjet @freddyaboulton @tcbegley @julianstastny @alexlyttle and many others. Thank you!

0.7.2

21 Jul 05:32
4a51b59
Compare
Choose a tag to compare

This is a patch release with the following new feature and fixes: