code: def best_guess(f, X):
      """
      Gets the best current guess from a vector.
      :param f: function to evaluate.
      :param X: locations.
      """
      n = X.shape[0]
      xbest = np.zeros(n)
      for i in range(n):
          ff = f(X[0 : (i + 1)])
          xbest[i] = ff[np.argmin(ff)]
      return xbest
  
file_path: GPyOpt/GPyOpt/util/general.py
imports: import numpy
  from scipy.special import erfc
  import time
  from ..core.errors import InvalidConfigError
label_desc: Use image node_id 3 for calling a global function with example usage: best_guess(f, X) and returns: xbest