(self, l_bound, u_bound, rng=None)
Tophat prior as it used in the original spearmint code.

        Parameters
        ----------
        l_bound : float
            Lower bound of the prior. Note the log scale.
        u_bound : float
            Upper bound of the prior. Note the log scale.
        rng: np.random.RandomState
            Random number generator
Tophat prior as it used in the original spearmint code.
Tophat prior as it used in the original spearmint code .
def __init__(self, l_bound, u_bound, rng=None):
        """
        Tophat prior as it used in the original spearmint code.

        Parameters
        ----------
        l_bound : float
            Lower bound of the prior. Note the log scale.
        u_bound : float
            Upper bound of the prior. Note the log scale.
        rng: np.random.RandomState
            Random number generator
        """
        if rng is None:
            self.rng = np.random.RandomState(np.random.randint(0, 10000))
        else:
            self.rng = rng
        self.min = l_bound
        self.max = u_bound
        if not (self.max > self.min):
            raise Exception("Upper bound of Tophat prior must be greater \
            than the lower bound!")
def __init__ ( self , l_bound , u_bound , rng = None ) : if rng is None : self . rng = np . random . RandomState ( np . random . randint ( 0 , 10000 ) ) else : self . rng = rng self . min = l_bound self . max = u_bound if not ( self . max > self . min ) : raise Exception ( "Upper bound of Tophat prior must be greater \
            than the lower bound!" )