Skip to content

Commit

Permalink
Remove deprecated _experimental_default_event_space_bijector from `…
Browse files Browse the repository at this point in the history
…tfd.Distribution` (use `experimental_default_event_space_bijector` instead).

PiperOrigin-RevId: 378804741
  • Loading branch information
emilyfertig authored and tensorflower-gardener committed Jun 11, 2021
1 parent 92497f4 commit b7fd44b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
6 changes: 0 additions & 6 deletions tensorflow_probability/python/distributions/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b7fd44b

Please sign in to comment.