-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare branch for the TFP 0.12.0 release #1199
Commits on Dec 21, 2020
-
Enforce PY3 for multi-substrate targets. Change PY2AND3 to PY3 throug…
…hout. PiperOrigin-RevId: 346372466
Configuration menu - View commit details
-
Copy full SHA for bbb6071 - Browse repository at this point
Copy the full SHA bbb6071View commit details -
Add arg for custom parameter-generating strategy in distribution Hypo…
…thesis tests. PiperOrigin-RevId: 346374625
Configuration menu - View commit details
-
Copy full SHA for b76652e - Browse repository at this point
Copy the full SHA b76652eView commit details -
Implement stopping ratio logistic distribution
Hello, this PR again implements the stopping ratio logistic distribution which was already discussed and reviewed [here](tensorflow#963). @srvasude , sorry for closing the other PR. I worked in your requested changes other than the transpose that needs to be done when sampling. Thanks. Cheers, Simon COPYBARA_INTEGRATE_REVIEW=tensorflow#990 from dirmeier:stopping_ratio 0743b54 PiperOrigin-RevId: 346376187
Configuration menu - View commit details
-
Copy full SHA for aae8cc4 - Browse repository at this point
Copy the full SHA aae8cc4View commit details -
Add mpmath as a test dependency.
PiperOrigin-RevId: 346378914
Configuration menu - View commit details
-
Copy full SHA for 9d3addd - Browse repository at this point
Copy the full SHA 9d3adddView commit details -
Merge pull request tensorflow#1188 from SamuelMarks:args-for-google-s…
…tyle-docstrings PiperOrigin-RevId: 346395749
Configuration menu - View commit details
-
Copy full SHA for 44431dd - Browse repository at this point
Copy the full SHA 44431ddView commit details -
Fix bug in tfp.math.bracket_root for negative roots.
PiperOrigin-RevId: 346430469
Configuration menu - View commit details
-
Copy full SHA for 6a8bd09 - Browse repository at this point
Copy the full SHA 6a8bd09View commit details -
Update
build_asvi_surrogate_posterior
to handle substituted distrib……utions, some nested distributions, and a mean field option. PiperOrigin-RevId: 346440980
Configuration menu - View commit details
-
Copy full SHA for 13ceab7 - Browse repository at this point
Copy the full SHA 13ceab7View commit details -
Add utilities for batched (transpose) convolutions to `tfp.experiment…
…al.nn`. PiperOrigin-RevId: 346614698
Configuration menu - View commit details
-
Copy full SHA for 30bdacf - Browse repository at this point
Copy the full SHA 30bdacfView commit details -
[TFP] Do non-lazy loading of symbols if TF is already loaded.
This means one must only 'import tensorflow_probability' to load saved models that have serialized TFP keras layers and TFP CompositeTensor specs. PiperOrigin-RevId: 346639386
Configuration menu - View commit details
-
Copy full SHA for 605a1ec - Browse repository at this point
Copy the full SHA 605a1ecView commit details -
Fix bug in the
batch_shape
ofJointDistributions
transformed by t……he `Restructure` bijector. PiperOrigin-RevId: 346669515
Configuration menu - View commit details
-
Copy full SHA for a1de748 - Browse repository at this point
Copy the full SHA a1de748View commit details -
Enable
tfp.experimental.distribute
in JAX backendPiperOrigin-RevId: 346676496
Configuration menu - View commit details
-
Copy full SHA for cb2ed69 - Browse repository at this point
Copy the full SHA cb2ed69View commit details -
Add
ThinningKernel
toexperimental.mcmc
.This is adapted from `SampleDiscardingKernel`, sans burn-in; it has the advantage of not wrapping `KernelResults`. PiperOrigin-RevId: 346698326
Configuration menu - View commit details
-
Copy full SHA for 2c190f4 - Browse repository at this point
Copy the full SHA 2c190f4View commit details -
PiperOrigin-RevId: 346793654
Configuration menu - View commit details
-
Copy full SHA for d0e533a - Browse repository at this point
Copy the full SHA d0e533aView commit details -
Add experimental_use_kahan_sum to ShardedIndependent + fix its parame…
…ters. PiperOrigin-RevId: 346868095
Configuration menu - View commit details
-
Copy full SHA for 67e6c7b - Browse repository at this point
Copy the full SHA 67e6c7bView commit details -
Fix docstring description of default name.
PiperOrigin-RevId: 346910502
Configuration menu - View commit details
-
Copy full SHA for a46e9d4 - Browse repository at this point
Copy the full SHA a46e9d4View commit details -
Fix cast creating Tracer in JAX backend.
PiperOrigin-RevId: 347085672
Configuration menu - View commit details
-
Copy full SHA for e132aa4 - Browse repository at this point
Copy the full SHA e132aa4View commit details -
Modify auto_composite_tensor to prefer static values for fields annot…
…ated as "_composite_tensor_shape_parameters". Prior to the fix, test fails with "ValueError: Input tensor 'IndependentNormal_2/log_prob/Sum:0' enters the loop with shape (), but has shape <unknown> after one iteration. To allow the shape to vary across iterations, use the `shape_invariants` argument of tf.while_loop to specify a less-specific shape." PiperOrigin-RevId: 347446310
Configuration menu - View commit details
-
Copy full SHA for 8854db0 - Browse repository at this point
Copy the full SHA 8854db0View commit details -
Enable
build_factored_surrogate_posterior
to take a multipart uncon……straining bijector. PiperOrigin-RevId: 347448699
Configuration menu - View commit details
-
Copy full SHA for 5105793 - Browse repository at this point
Copy the full SHA 5105793View commit details -
Add support for non-list initial variance structures.
PiperOrigin-RevId: 347460285
Configuration menu - View commit details
-
Copy full SHA for e0ca329 - Browse repository at this point
Copy the full SHA e0ca329View commit details -
Replace deprecated arg name in
surrogate_posteriors_test
.PiperOrigin-RevId: 347499168
Configuration menu - View commit details
-
Copy full SHA for 2dbfdaf - Browse repository at this point
Copy the full SHA 2dbfdafView commit details -
Update docstring to reflect
constraining_bijectors
deprecation.PiperOrigin-RevId: 347505196
Configuration menu - View commit details
-
Copy full SHA for 37c9455 - Browse repository at this point
Copy the full SHA 37c9455View commit details -
Exclude
StoppingRatioLogistic
distribution from `testCanConstructAn……dSampleDistribution`. PiperOrigin-RevId: 347528419
Configuration menu - View commit details
-
Copy full SHA for 9ce021a - Browse repository at this point
Copy the full SHA 9ce021aView commit details -
Disable
GeneralizedExtremeValue
distribution from `jax_transformati……on_test.testLogProbSample`. Re-enable after http://b/175654800 is resolved. PiperOrigin-RevId: 347535479
Configuration menu - View commit details
-
Copy full SHA for a2e2b59 - Browse repository at this point
Copy the full SHA a2e2b59View commit details -
Remove TFP references to deprecated Affine bijectors.
PiperOrigin-RevId: 347638177
Configuration menu - View commit details
-
Copy full SHA for 7792a90 - Browse repository at this point
Copy the full SHA 7792a90View commit details -
Remove support for a long-deprecated trace_fn signature.
PiperOrigin-RevId: 343150107
Configuration menu - View commit details
-
Copy full SHA for b49a757 - Browse repository at this point
Copy the full SHA b49a757View commit details -
Ensure that all traceable quantities in
minimize
are actually trace……able. PiperOrigin-RevId: 347655640
Configuration menu - View commit details
-
Copy full SHA for 2f313b8 - Browse repository at this point
Copy the full SHA 2f313b8View commit details -
Update
tensor_shape.py
for numpy backend.PiperOrigin-RevId: 347660796
Configuration menu - View commit details
-
Copy full SHA for 9d42d9d - Browse repository at this point
Copy the full SHA 9d42d9dView commit details -
Avoid feeding
None
s to tf.control_dependencies in mixed eager/graph…… contexts. Add a property-based test that tries to create Distributions in eager mode then sample from them in graph mode, to exercise the failure mode. PiperOrigin-RevId: 347692243
Configuration menu - View commit details
-
Copy full SHA for 23d9353 - Browse repository at this point
Copy the full SHA 23d9353View commit details -
Avoid Shift(None) bug in
VectorExponentialLinearOperator
.PiperOrigin-RevId: 347710953
Configuration menu - View commit details
-
Copy full SHA for a06f0d8 - Browse repository at this point
Copy the full SHA a06f0d8View commit details -
Adds
tfp.experimental.bijectors.inverse_log_det_jacobian_ratio
.Adds `tfp.experimental.distributions.log_prob_ratio(p, x, q, y) = p(x) - q(y)`. Custom implementations are registered for `tfd.Independent`, `tfd.Sample`, `tfd.JointDistribution*`, `tfd.TransformedDistribution`, `tfb.Chain`, and `tfb.ScaleMatvecDiag`. MVNDiag is tested as a proof of concept, in transformed_distribution_test. PiperOrigin-RevId: 347822296
Configuration menu - View commit details
-
Copy full SHA for 876d512 - Browse repository at this point
Copy the full SHA 876d512View commit details -
Add a default bijector to the Deterministic distributions.
Also fixes an XLA compilation issue (no StringFormat, PrintV2 ops in XLA) introduced by the logdet degree-of-freedom warning. This was exposed by the new test in deterministic_test.py (Deterministic default bijector uses Chain, which uses composition.py). PiperOrigin-RevId: 347832464
Configuration menu - View commit details
-
Copy full SHA for e7d64b7 - Browse repository at this point
Copy the full SHA e7d64b7View commit details -
Rewrite experimental sample_chain in terms of run_kernel.
Implement burn-in by sequencing two calls of run_kernel, and thinning by inserting a ThinningKernel into the kernel onion. Also change the default tracing function to account for the fact that the chain state history is no longer returned separately by default. Delete tests that no longer make sense. PiperOrigin-RevId: 347836706
Configuration menu - View commit details
-
Copy full SHA for d3bf5a0 - Browse repository at this point
Copy the full SHA d3bf5a0View commit details -
Previously, had the exception: "TypeError: Tensors in list passed to 'inputs' of 'AddN' Op have types [float64, float64, float32] that don't all match." PiperOrigin-RevId: 347871205
Configuration menu - View commit details
-
Copy full SHA for 5f0dbec - Browse repository at this point
Copy the full SHA 5f0dbecView commit details -
Allow 0 concentration in gamma samplers.
Gamma(concentration=0) always samples 0. ExpGamma(concentration=0) always samples -inf. Beta(concentration1=0) always samples 0. Beta(concentration0=0) always samples 1. BetaBinomial(concentration1=0) always samples 0. BetaBinomial(concentration0=0) always samples total_counts. likewise for Dirichlet and DirichletMultinomial. Not changing the validation because (i) inertia, and (ii) any of these distributions is still degenerate with a 0 concentration, so should arguably be avoided when possible. PiperOrigin-RevId: 347876446
Configuration menu - View commit details
-
Copy full SHA for 1cc5c39 - Browse repository at this point
Copy the full SHA 1cc5c39View commit details -
Configuration menu - View commit details
-
Copy full SHA for ead8501 - Browse repository at this point
Copy the full SHA ead8501View commit details
Commits on Dec 22, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 90fa3f0 - Browse repository at this point
Copy the full SHA 90fa3f0View commit details