Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running PBO with both instrumentations #1382

Merged
merged 1 commit into from
Mar 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 24 additions & 23 deletions nevergrad/benchmark/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -1909,29 +1909,30 @@ def pbo_suite(seed: tp.Optional[int] = None) -> tp.Iterator[Experiment]:
for dim in [16, 64, 100]:
for fid in range(1, 24):
for iid in range(1, 5):
try:
func = iohprofiler.PBOFunction(fid, iid, dim)
except ModuleNotFoundError as e:
raise fbase.UnsupportedExperiment("IOHexperimenter needs to be installed") from e
for optim in [
"DiscreteOnePlusOne",
"Shiwa",
"CMA",
"PSO",
"TwoPointsDE",
"DE",
"OnePlusOne",
"AdaptiveDiscreteOnePlusOne",
"CMandAS2",
"PortfolioDiscreteOnePlusOne",
"DoubleFastGADiscreteOnePlusOne",
"MultiDiscrete",
"cGA",
dde,
]:
for nw in [1, 10]:
for budget in [100, 1000, 10000]:
yield Experiment(func, optim, num_workers=nw, budget=budget, seed=next(seedg)) # type: ignore
for instrumentation in ["Softmax", "Ordered"]:
try:
func = iohprofiler.PBOFunction(fid, iid, dim, instrumentation=instrumentation)
except ModuleNotFoundError as e:
raise fbase.UnsupportedExperiment("IOHexperimenter needs to be installed") from e
for optim in [
"DiscreteOnePlusOne",
"Shiwa",
"CMA",
"PSO",
"TwoPointsDE",
"DE",
"OnePlusOne",
"AdaptiveDiscreteOnePlusOne",
"CMandAS2",
"PortfolioDiscreteOnePlusOne",
"DoubleFastGADiscreteOnePlusOne",
"MultiDiscrete",
"cGA",
dde,
]:
for nw in [1, 10]:
for budget in [100, 1000, 10000]:
yield Experiment(func, optim, num_workers=nw, budget=budget, seed=next(seedg)) # type: ignore


def causal_similarity(seed: tp.Optional[int] = None) -> tp.Iterator[Experiment]:
Expand Down