Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google-deepmind/distrax
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e993bbb34e0347c99d5b472381b3aa1feeb1b130
Choose a base ref
..
head repository: google-deepmind/distrax
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 41cd6674f0a41368b5ff63f730a4a95001ca2f9d
Choose a head ref
Showing with 0 additions and 5 deletions.
  1. +0 −5 distrax/_src/distributions/gumbel.py
5 changes: 0 additions & 5 deletions distrax/_src/distributions/gumbel.py
Original file line number Diff line number Diff line change
@@ -99,11 +99,6 @@ def entropy(self) -> Array: # pylint:disable=arguments-differ
"""Calculates the Shannon entropy (in nats)."""
return jnp.log(self._scale) + 1. + jnp.euler_gamma

def cdf(self, value: Array) -> Array:
"""See `Distribution.cdf`."""
z = self._standardize(value)
return jnp.exp(-jnp.exp(-z))

def log_cdf(self, value: Array) -> Array:
"""See `Distribution.log_cdf`."""
z = self._standardize(value)