https://github.com/GPflow/GPflow
Revision 00d2e665d7a55c5eb741493ad65ee2953da62adc authored by st-- on 12 May 2020, 17:21:58 UTC, committed by GitHub on 12 May 2020, 17:21:58 UTC
1 parent 7560936
Raw File
Tip revision: 00d2e665d7a55c5eb741493ad65ee2953da62adc authored by st-- on 12 May 2020, 17:21:58 UTC
bump version to 2.0.3 (#1464)
Tip revision: 00d2e66
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