Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, dimension, bound, d_function, n_nest):
self.pa = 0.25 #parameter
self.dimension = dimension
self.bound = bound
self.d_function = d_function
self.nests = [(d_function(*p), p) for p in lhs.latin_hypercube(dimension, bound, n_nest)]
self.best_value, self.best = max(self.nests)