original_docstring: 
      Gets the best current guess from a vector.
      :param f: function to evaluate.
      :param X: locations.
      
docstring: Gets the best current guess from a vector.
docstring_tokens: Gets the best current guess from a vector .
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
code_tokens: def best_guess ( f , X ) : 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
short_docstring: Gets the best current guess from a vector.
short_docstring_tokens: Gets the best current guess from a vector .
comment: '''
      Gets the best current guess from a vector.
      :param f: function to evaluate.
      :param X: locations.
      '''