def EI_gaussian_empirical(mean, var, thresh, rng, N):
 return EI_empirical(((rng.randn(N) * np.sqrt(var)) + mean), thresh)

def EI_gaussian_empirical ( mean , var , thresh , rng , N ) : return EI_empirical ( ( ( rng . randn ( N ) * np . sqrt ( var ) ) + mean ) , thresh )
expected improvement of gaussian over threshold .