(self)
return x_star[0]
Maximizes the given acquisition function.

        Returns
        -------
        np.ndarray(N,D)
            Point with highest acquisition value.
Maximizes the given acquisition function.
Maximizes the given acquisition function .
def maximize(self):
        """
        Maximizes the given acquisition function.

        Returns
        -------
        np.ndarray(N,D)
            Point with highest acquisition value.
        """

        x = np.linspace(self.lower[0], self.upper[0], self.resolution).reshape((self.resolution, 1, 1))
        # y = array(map(acquisition_fkt, x))
        ys = np.zeros([self.resolution])
        for i in range(self.resolution):
            ys[i] = self.objective_func(x[i])
        y = np.array(ys)
        x_star = x[y.argmax()]

        return x_star[0]
def maximize ( self ) : x = np . linspace ( self . lower [ 0 ] , self . upper [ 0 ] , self . resolution ) . reshape ( ( self . resolution , 1 , 1 ) ) # y = array(map(acquisition_fkt, x)) ys = np . zeros ( [ self . resolution ] ) for i in range ( self . resolution ) : ys [ i ] = self . objective_func ( x [ i ] ) y = np . array ( ys ) x_star = x [ y . argmax ( ) ] return x_star [ 0 ]