-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Description
Referencing issue #138, i tried to implement the code mentioned in concurrent.futures and ran into trouble with the code not completing , may i ask if it is possible to implement on concurrent.futures instead of asyncio as referenced by async bayesian optimization example
class hyper_class():
def __init__(self):
self.result = None
self.point = None
def step(self, input):
optimizer = input[0]
model = input[1]
if self.result is not None:
optimizer.register(self.point, self.result)
self.point = optimizer.suggest(utility)
self.result = model(self.point)
return None
with concurrent.futures.ProcessPoolExecutor() as executor:
for _ in range(16):
executor.submit(hyper_class().step, [optimizer, model])