From b7fd44b36a4c0d18854a4dadb23a5a9ccbbbe453 Mon Sep 17 00:00:00 2001 From: emilyaf Date: Thu, 10 Jun 2021 22:12:17 -0700 Subject: [PATCH] Remove deprecated `_experimental_default_event_space_bijector` from `tfd.Distribution` (use `experimental_default_event_space_bijector` instead). PiperOrigin-RevId: 378804741 --- .../python/bijectors/generalized_pareto.py | 2 +- tensorflow_probability/python/distributions/distribution.py | 6 ------ .../python/distributions/hidden_markov_model.py | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/tensorflow_probability/python/bijectors/generalized_pareto.py b/tensorflow_probability/python/bijectors/generalized_pareto.py index b9f5a0a09b..e7909c43b1 100644 --- a/tensorflow_probability/python/bijectors/generalized_pareto.py +++ b/tensorflow_probability/python/bijectors/generalized_pareto.py @@ -47,7 +47,7 @@ class GeneralizedPareto(bijector_lib.AutoCompositeTensorBijector): `x >= loc` if `concentration >= 0` `x >= loc` and `x <= loc + scale / abs(concentration)` if `concentration < 0` - This bijector is used as the `_experimental_default_event_space_bijector` of + This bijector is used as the `experimental_default_event_space_bijector` of the `GeneralizedPareto` distribution. """ diff --git a/tensorflow_probability/python/distributions/distribution.py b/tensorflow_probability/python/distributions/distribution.py index ef98985cc7..a43c7cbbda 100644 --- a/tensorflow_probability/python/distributions/distribution.py +++ b/tensorflow_probability/python/distributions/distribution.py @@ -1762,12 +1762,6 @@ def _default_event_space_bijector(self, *args, **kwargs): '_default_event_space_bijector` is not implemented: {}'.format( type(self).__name__)) - @deprecation.deprecated( - '2020-10-20', - 'Use `experimental_default_event_space_bijector` instead.') - def _experimental_default_event_space_bijector(self, *args, **kwargs): - return self.experimental_default_event_space_bijector(*args, **kwargs) - def experimental_default_event_space_bijector(self, *args, **kwargs): """Bijector mapping the reals (R**n) to the event space of the distribution. diff --git a/tensorflow_probability/python/distributions/hidden_markov_model.py b/tensorflow_probability/python/distributions/hidden_markov_model.py index 84996302a0..786e2b8723 100644 --- a/tensorflow_probability/python/distributions/hidden_markov_model.py +++ b/tensorflow_probability/python/distributions/hidden_markov_model.py @@ -1189,7 +1189,7 @@ def _reduce_one_step(): # pylint: disable=protected-access def _default_event_space_bijector(self): return (self._observation_distribution. - _experimental_default_event_space_bijector()) + experimental_default_event_space_bijector()) # pylint: enable=protected-access def _parameter_control_dependencies(self, is_init):