https://github.com/GPflow/GPflow
Raw File
Tip revision: a0c7c118f4a70a67ccc7c70e63a99fb3f9db93c5 authored by Vincent Dutordoir on 10 July 2020, 14:11:11 UTC
Update readme with new project using GPflow
Tip revision: a0c7c11
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