https://github.com/GPflow/GPflow
Revision 806004da4a784c902c0a1527560d53ae0d197eba authored by st-- on 14 April 2020, 12:57:55 UTC, committed by GitHub on 14 April 2020, 12:57:55 UTC
1 parent 12dafe9
Raw File
Tip revision: 806004da4a784c902c0a1527560d53ae0d197eba authored by st-- on 14 April 2020, 12:57:55 UTC
fix link in sphinx intro.rst (#1429)
Tip revision: 806004d
utils.py
import numpy as np
import tensorflow as tf


def inv_probit(x):
    jitter = 1e-3  # ensures output is strictly between 0 and 1
    return 0.5 * (1.0 + tf.math.erf(x / np.sqrt(2.0))) * (1 - 2 * jitter) + jitter
back to top