def f(x):
    x = x.reshape((- 1), input_dim)
    mean_f = (utils.compute_mean_f_np(x, X, (Y - gp_hyper['meanf']), gp_hyper['lengthscale'], gp_hyper['signal_var'], gp_hyper['noise_var'], kernel_type='se') + gp_hyper['meanf'])
    return (- mean_f.reshape((- 1), 1))
def f(x):
    x = x.reshape((- 1), input_dim)
    mean_f = (utils.compute_mean_f_np(x, X, (Y - gp_hyper['meanf']), gp_hyper['lengthscale'], gp_hyper['signal_var'], gp_hyper['noise_var'], kernel_type='se') + gp_hyper['meanf'])
    return (- mean_f.reshape((- 1), 1))