https://github.com/GPflow/GPflow
Raw File
Tip revision: 8ac6e358810e9e9699a7732433a0474e30961491 authored by st-- on 01 June 2020, 11:22:55 UTC
Merge branch 'develop' into st/fix_active_dims_2
Tip revision: 8ac6e35
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