Skip to content

Commit

Permalink
configure multi objective function
Browse files Browse the repository at this point in the history
Let's use multi objective support by the optuna framework directly
instead of approximating it by return a single reduced return value.
  • Loading branch information
cherusk committed May 13, 2023
1 parent 0f636bb commit 49c597d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions breeder/linux_network_stack/root_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ async def gather_recon():
logger.warning(f'metric received {metric_value}')
logger.warning('Done')

return rtt - delivery_rate
return rtt, delivery_rate

with Client(address="godon_dask_scheduler_1:8786") as client:
# Create a study using Dask-compatible storage
storage = DaskStorage(InMemoryStorage())
study = optuna.create_study(storage=storage)
study = optuna.create_study(directions=["minimize", "maximize"], storage=storage)
# Optimize in parallel on your Dask cluster
futures = [
client.submit(study.optimize, objective, n_trials=10, pure=False)
Expand Down

0 comments on commit 49c597d

Please sign in to comment.