def METHOD_NAME(x, gp, kappa):
    """
    Upper Confidence Bound (UCB) utility function
    Parameters
    ----------
    x : numpy array
        parameters
    gp : GaussianProcessRegressor
    kappa : float
    Returns
    -------
    float
    """
    with warnings.catch_warnings():
        warnings.simplefilter("ignore")
        mean, std = gp.predict(x, return_std=True)
    return mean + kappa * std