We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8210610 commit 1c809a7Copy full SHA for 1c809a7
bayesflow/utils/numpy_utils.py
@@ -4,7 +4,7 @@
4
5
def inverse_sigmoid(x: np.ndarray) -> np.ndarray:
6
"""Inverse of the sigmoid function."""
7
- return np.log(x / (1 - x))
+ return np.log(x) - np.log1p(-x)
8
9
10
def inverse_shifted_softplus(
0 commit comments