nnrl/distributions/squashed_distribution.py
def reproduce(self, event):
        """Produce a reparametrized sample with the same value as `event`."""
        assert hasattr(
            self.base_dist, "reproduce"
        ), "Base distribution has no `reproduce` method"

        for transform in reversed(self.transforms):
            event = transform.inv(event)
        sample = self.base_dist.reproduce(event)
        for transform in self.transforms:
            sample = transform(sample)
        return sample
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as ` event ` .
def reproduce(self, event):
        assert hasattr(
            self.base_dist, "reproduce"
        ), "Base distribution has no `reproduce` method"
        for transform in reversed(self.transforms):
            event = transform.inv(event)
        sample = self.base_dist.reproduce(event)
        for transform in self.transforms:
            sample = transform(sample)
        return sample
def reproduce ( self , event ) : assert hasattr ( self . base_dist , "reproduce" ) , "Base distribution has no `reproduce` method" for transform in reversed ( self . transforms ) : event = transform . inv ( event ) sample = self . base_dist . reproduce ( event ) for transform in self . transforms : sample = transform ( sample ) return sample
Produce a reparametrized sample with the same value as `event`.
Produce a reparametrized sample with the same value as ` event ` .
"""Produce a reparametrized sample with the same value as `event`."""
self
event